Skip to content

Promote --autonomous to a bundle-wide (marketplace-wide) run-mode convention for gated skills on crons #6

Closed

Description

@vybe

Summary

Promote --autonomous from a per-skill patch into a bundle-wide run-mode convention for skills that declare automation: gated (i.e. call AskUserQuestion) yet are designed to run on Trinity crons.

Surfaced by corbin while back-porting sync-fleet-to-head v1.4 and profile-fleet v1.6 (companion issue). Both independently invented the same fix; that convergence is the signal it should be a convention, not a copy-pasted section.

The problem it fixes

A gated skill on an unattended cron blocks on an approval prompt nobody sees, then burns its entire timeout with nothing committed. The adaptations that made corbin's crons work (skip AskUserQuestion, choose safe defaults, scope the commit, budget the run) lived only in the Trinity scheduler message — unversioned, untestable, invisible to anyone invoking the skill by hand, and destroyed by any schedule rewrite.

This failure mode is live in the fleet right now: ruby's /video-intake is a gated skill on a daily cron — every run blocks on an unseen prompt and burns the full 3600s.

Proposal

A declared --autonomous run mode (mode comes from $ARGUMENTS, never from a caller's prose), so the cron message becomes the bare call (/<skill> --autonomous) and nothing else. In autonomous mode: never call AskUserQuestion; take the safe default at each gate; never take a destructive/irreversible path that a gate was protecting — a non-trivial decision becomes a needs-attention line in the run result, not a guess. The invariant that earns the mode is that every below-the-gate action is non-destructive by construction (corbin's sync-fleet v1.4 rationale).

Scope decision (maintainer/Eugene)

Three mechanisms, increasing leverage:

  1. Per-skill — each gated-cron skill grows its own --autonomous mode (what corbin already did).
  2. Bundle-wide convention — a documented --autonomous contract in add-orchestrator that its skills adopt uniformly.
  3. Marketplace-wide — a dev-methodology/agent-dev convention + an /audit-wizards gate that flags any automation: gated skill listed in a schedules: block without a declared autonomous mode (would have caught ruby /video-intake mechanically).

Recommend (3): the audit gate turns "invisible in a scheduler message" into "caught before publish." Routed to Eugene for ratification per propose-only boundary.

Filed by trinity-pm on behalf of corbin's report. Verdict: adopt; scope is a maintainer call.

Activity

  1. added
    enhancement
    on Aug 16, 2026
  2. vybe commented on Aug 16, 2026

    @vybe
    ContributorAuthor

    Companion to #5 (the back-port that surfaced this) and #7 (the audit-gate mechanism that would enforce a marketplace-wide version). Live victim: ruby's /video-intake.

  3. vybe commented on Aug 17, 2026

    @vybe
    ContributorAuthor

    Reopening: half (a) landed, half (b) has not.

    PR #14 (merged, add-orchestrator 1.24) delivered (a) — the documented bundle-wide --autonomous contract, with /sync-fleet-to-head v1.4 and /profile-fleet v1.6 as its first two instances (PR #10).

    (b) is still outstanding: the deterministic /audit-wizards gate that flags any automation: gated skill listed in a schedules: block with no declared autonomous mode. That gate lives in trinity-pm's /audit-wizards skill (where the marketplace quality gates live, kept in lockstep with /test-wizard), and it is not implemented yet — so the "Mechanical enforcement" paragraph 1.24 added currently describes intent, not a running check.

    Closing this issue before the gate exists would leave the marketplace documenting enforcement that does not run. Tracking (b) here until it lands.

  4. reopened this on Aug 17, 2026
  5. vybe commented on Aug 17, 2026

    @vybe
    ContributorAuthor

    Both halves now landed.

    (a) The convention — add-orchestrator 1.24 (PR #14): Run-mode convention — --autonomous for gated skills on crons, five clauses, with /sync-fleet-to-head v1.4 and /profile-fleet v1.6 (PR #10) as its instances.

    (b) The mechanical gate — implemented in trinity-pm's /audit-wizards v1.3 (e91afe1). It flags any skill declaring automation: gated that is named in a schedules: block yet declares no --autonomous mode, requiring both markers from the convention's Declaring the mode in a skill section (--autonomous in argument-hint and an ### Autonomous mode contract subsection — one without the other is a half-declaration and fails). Severity HIGH.

    It lives in the audit's STEP 3 (repo-scoped structural checks) rather than STEP 2 deliberately: gated skills span every plugin, and the five STEP 2 gates must stay byte-identical to /test-wizard's copies — this check has no per-wizard dry-run equivalent to mirror.

    Verified in both directions, not just asserted: against a synthetic gated+scheduled /video-intake with no mode it emits FAIL autonomy-mode-missing; after adding the argument-hint and contract subsection it clears. Against the live marketplace it is green — both real instances declare the mode.

    One coverage limit, reported by the check itself rather than hidden. Pass A resolves which playbook a schedule actually calls from the playbook-call grammar (protocols/playbook-call.md): the message's first token, or a legacy skill: key. 9 files carry schedule entries whose message: is prose — all 8 wizards with schedules: blocks (chief-of-staff, doctor, ghostwriter, kb-agent, prospector, receptionist, recon, webmaster) plus trinity/onboard's documented example. A prose message names no playbook, so a gated skill scheduled that way cannot be resolved and this gate cannot see it. The check emits that as a NOTE listing the files, never as a silent pass.

    Filed separately as the follow-up, since it is a doctrine-conformance gap in its own right: these wizards teach every generated agent how to write a schedule, so each one currently propagates a prose message where the grammar requires a playbook call.

  6. vybe commented on Aug 17, 2026

    @vybe
    ContributorAuthor

    Correction to my previous comment: the coverage follow-up is filed as #15, which did not exist when I wrote that comment claiming it was already filed. It is filed now, and the Class A half is already swept (898ede4) — the gate's coverage NOTE dropped from 9 files to 3. #15 tracks the remaining three, which need a design call rather than a message rewrite.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions