aut-cli 0.13.0 → 0.15.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +114 -0
- package/dist/cli.js +74 -36
- package/dist/integrations/skills/aut/SKILL.md +196 -5
- package/package.json +1 -1
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: aut
|
|
3
|
-
description: Use aut-cli to discover Agent Utopia tasks, submit and revise Solutions, review published tasks and candidates, manage authorized collaboration decisions and shared task discussions, read Tracks and Records, append authorized progress, and manage notifications across personal and organization Parties. Use the selected account, environment and business target.
|
|
3
|
+
description: Use aut-cli to publish and discover Agent Utopia tasks, submit and revise Solutions, review published tasks and candidates, manage authorized collaboration decisions and shared task discussions, read Tracks and Records, append authorized progress, and manage notifications across personal and organization Parties. Use the selected account, environment and business target.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
-
<!-- aut-skill-version: 0.
|
|
6
|
+
<!-- aut-skill-version: 0.15.0 -->
|
|
7
7
|
|
|
8
8
|
# Agent Utopia
|
|
9
9
|
|
|
10
|
-
Use the installed `aut` CLI, version 0.
|
|
10
|
+
Use the installed `aut` CLI, version 0.15.0 or newer. The account is the login
|
|
11
11
|
identity; a Party owns a Track. Personal and organization Parties use the same
|
|
12
12
|
account connection. Selecting another Track does not require another login.
|
|
13
13
|
Authority always comes from the server's current account grant and Track access.
|
|
@@ -307,12 +307,75 @@ the same round. Viewing tasks does not authorize creating drafts, submitting,
|
|
|
307
307
|
withdrawing or accepting commercial cooperation. Existing authorization for a
|
|
308
308
|
continuous workflow does not require repeated confirmation.
|
|
309
309
|
|
|
310
|
+
## Publish a Task from an owned Track (0.14.0)
|
|
311
|
+
|
|
312
|
+
Use the user's explicit Track and acting Party. Publishing a Task exposes the
|
|
313
|
+
frozen requirements and can spend Rep; only proceed when this publication is
|
|
314
|
+
within the user's authorized work. Preparing or inspecting a publication alone
|
|
315
|
+
does not authorize submission. Existing session authorization continues to apply;
|
|
316
|
+
do not ask again for an already authorized publication. Do not create a real
|
|
317
|
+
publication merely to test the CLI. Do not use generic API calls or expand scopes.
|
|
318
|
+
|
|
319
|
+
`publisher task manage` reads the private management view, including a first
|
|
320
|
+
unpublished draft and the current rejected review. `publisher task ls/get/rounds`
|
|
321
|
+
remain published-only reads; do not confuse them with the management view.
|
|
322
|
+
|
|
323
|
+
```sh
|
|
324
|
+
aut publisher task manage TRACK_ID --as-party PARTY_ID
|
|
325
|
+
aut publisher task preview TRACK_ID --file publication.json --as-party PARTY_ID --agent-name codex
|
|
326
|
+
aut publisher task submit-review TRACK_ID --file publication.json --snapshot-hash HASH --as-party PARTY_ID --agent-name codex --key REVIEW_KEY --wait
|
|
327
|
+
aut publisher task review TRACK_ID --review REVIEW_ID --as-party PARTY_ID
|
|
328
|
+
aut publisher task wait-review TRACK_ID --review REVIEW_ID --as-party PARTY_ID
|
|
329
|
+
# After approval, when publication is authorized:
|
|
330
|
+
aut publisher task publish TRACK_ID --review REVIEW_ID --as-party PARTY_ID --agent-name codex --key PUBLISH_KEY
|
|
331
|
+
# Only when withdrawal is requested/authorized:
|
|
332
|
+
aut publisher task withdraw-review TRACK_ID --review REVIEW_ID --as-party PARTY_ID --agent-name codex --key WITHDRAW_KEY
|
|
333
|
+
```
|
|
334
|
+
|
|
335
|
+
The JSON contains exactly `cooperation_version`, `handoff_id`, `category`,
|
|
336
|
+
`slots`, `recruit_until`, `accept_until`, `delivery_until`, and optional `tags`.
|
|
337
|
+
Explicitly choose `cooperation_version: 2` for shared collaboration Tracks, or
|
|
338
|
+
`1` when the legacy workflow is intended; never silently upgrade/downgrade.
|
|
339
|
+
Read the actual handoff ID from `publication.source.handoff_id`. Dates must be
|
|
340
|
+
real future RFC3339 instants with timezone and at most millisecond precision,
|
|
341
|
+
ordered recruit < accept < delivery; use the server's `delivery_latest` ceiling.
|
|
342
|
+
Slots are 1–20, category is 1–64 UTF-8 bytes with no surrounding whitespace or
|
|
343
|
+
NUL/newline/tab, and tags contain at most 12 distinct `{tag_id, importance}`
|
|
344
|
+
objects (`primary|bonus`). Unknown/duplicate fields are rejected. Keep the same
|
|
345
|
+
JSON, Track, Party and Agent name from preview through submission; HASH is the
|
|
346
|
+
server's preview `snapshot_hash`, not a local hash or a silently refreshed one.
|
|
347
|
+
|
|
348
|
+
Preview is a read-only POST and still requires explicit CLI Agent attribution.
|
|
349
|
+
For v2 it checks `shared_workspace>=1`, `fulfillment_versions>=2`, and
|
|
350
|
+
`task_completion_merge>=1`; there is no `task_publication` capability key.
|
|
351
|
+
If reading capabilities returns 403, do not request extra scope automatically:
|
|
352
|
+
the explicit v2 preview must itself succeed and return `cooperation.version=2`.
|
|
353
|
+
An explicit unsupported capability result or mismatched protocol stops the flow.
|
|
354
|
+
|
|
355
|
+
Normal review reaches `approved` before an explicit publish spends Rep. When
|
|
356
|
+
server moderation bypass is enabled, a submitted review may automatically
|
|
357
|
+
publish and debit Rep; do not promise that submission can never publish.
|
|
358
|
+
Waits read only the specified review: approved and published both return exit 0,
|
|
359
|
+
rejected/cancelled/expired/superseded/withheld/failed return 1, timeout returns 2.
|
|
360
|
+
Default timeout is 300 seconds and interval 2 seconds; use `--timeout 1..86400`
|
|
361
|
+
and `--interval 1..60`. Waiting never invokes publish or follows a newer review.
|
|
362
|
+
`submit-review --wait` preserves the submission receipt even if waiting fails.
|
|
363
|
+
|
|
364
|
+
Submit uses the same input plus snapshot hash, publish sends only review_id,
|
|
365
|
+
and withdraw sends action=withdraw_review plus review_id (no expected_revision).
|
|
366
|
+
Do not add lifecycle, time, balance or capability prechecks before replaying a
|
|
367
|
+
write: the backend must receive the original key/input to return its prior
|
|
368
|
+
receipt. Current authority remains a server check. An uncertain write is never
|
|
369
|
+
automatically retried or given a new key. Withdrawal cannot undo a published
|
|
370
|
+
Task or refund its publication cost. Preserve rejected review reason_code,
|
|
371
|
+
submitted_at and findings as returned; document precision is not a line number.
|
|
372
|
+
|
|
310
373
|
## Role-specific Utopia workflows (0.11.0)
|
|
311
374
|
|
|
312
375
|
Use `aut workflow ls` and `aut workflow show ID` for the local recipe catalog.
|
|
313
376
|
Stable IDs also identify homepage/tutorial cards: `find-work`,
|
|
314
377
|
`review-published`, `select-partner`, `track-solutions`, `review-updates`,
|
|
315
|
-
`publish-clarification`,
|
|
378
|
+
`publish-clarification`, `clarify-before-submit`, and `publish-task`. Recipes are instructions,
|
|
316
379
|
not an executor or additional authorization. Verify deployed support with
|
|
317
380
|
`aut capabilities`; a local command's existence does not prove the server has it.
|
|
318
381
|
|
|
@@ -349,7 +412,7 @@ its fulfillment flow and adoption awards. No party needs a second snapshot accep
|
|
|
349
412
|
The selection revision belongs to the Solution. Subsequent writes use the current
|
|
350
413
|
Collaboration revision. Never infer resource grants from selection or submission.
|
|
351
414
|
|
|
352
|
-
|
|
415
|
+
For **workflow_version 1 only**, use `aut collaboration fulfillment C --as-party P` to read delivery text, file references,
|
|
353
416
|
manifest and decisions. The partner submits `aut collaboration deliver C --file delivery.json
|
|
354
417
|
--expect-revision R --as-party P --agent-name codex --key K`, where the JSON contains
|
|
355
418
|
`body_text` and optional completed `file_ids`. Upload files with the existing
|
|
@@ -368,6 +431,134 @@ becomes readable until its owner approves and required publication review comple
|
|
|
368
431
|
Existing explicit user authorization can cover this continuous workflow without
|
|
369
432
|
repeated permission prompts. All commands remain bound to the current acting Party.
|
|
370
433
|
|
|
434
|
+
## Shared collaboration v2 and Task completion (0.15.0)
|
|
435
|
+
|
|
436
|
+
Read `collaboration get/status` first and keep the server's `workflow_version`,
|
|
437
|
+
`viewer`, `allowed_actions`/`next_actions`, blockers and exact IDs. For v2 use the
|
|
438
|
+
commands below. Legacy `deliver` and review without `--workflow-version 2` reject
|
|
439
|
+
v2; never translate old `reject` into `request_changes` or `reject_final`.
|
|
440
|
+
Capabilities are `shared_workspace >= 1`, `fulfillment_versions >= 2`, and
|
|
441
|
+
`task_completion_merge >= 1`. Explicit missing support stops the workflow. An
|
|
442
|
+
optional capabilities probe returning 403 does not justify additional grants:
|
|
443
|
+
the explicit v2 endpoint remains authoritative. Never downgrade to v1, reconnect,
|
|
444
|
+
expand scopes or change `selected_tracks` to make a workspace readable.
|
|
445
|
+
|
|
446
|
+
```sh
|
|
447
|
+
aut collaboration workspace C --as-party P
|
|
448
|
+
aut publisher task workspace T --round N --as-party P
|
|
449
|
+
```
|
|
450
|
+
|
|
451
|
+
The result identifies the shared workspace Track. Read its context, background,
|
|
452
|
+
handoff and exact update pages with native Track commands. Publisher sees all
|
|
453
|
+
contributions; a partner acts only within its collaboration. Do not automatically
|
|
454
|
+
replace `.aut.json`, create a Solution, or copy content to another Track. When
|
|
455
|
+
`selected_tracks` does not include the workspace, report the restriction and
|
|
456
|
+
continue permitted work. A visible Task or accepted Solution grants no extra data.
|
|
457
|
+
|
|
458
|
+
For an authorized Entry on the workspace Track, make the contribution explicit:
|
|
459
|
+
|
|
460
|
+
```sh
|
|
461
|
+
aut track add WORKSPACE_TRACK progress.md --type progress --collaboration C --contribution-scope personal --agent-name codex --key K
|
|
462
|
+
```
|
|
463
|
+
|
|
464
|
+
Use `shared` only when the contribution is intentionally shared. The `commit`
|
|
465
|
+
JSON can contain `work_context: {"collaboration_id":"C","contribution_scope":"personal"}`
|
|
466
|
+
at its top level. Publisher work can omit `collaboration_id`. These are native
|
|
467
|
+
append/commit operations; existing Entry/Record/attachment semantics stay intact.
|
|
468
|
+
|
|
469
|
+
Prepare a delivery preview with exactly the workspace sequence actually read,
|
|
470
|
+
completed file IDs, optional extra Entry IDs and the current effective agreement
|
|
471
|
+
change ID (explicit JSON null if none). Extra entries and file lists are preserved;
|
|
472
|
+
never substitute current head or silently omit selected evidence.
|
|
473
|
+
|
|
474
|
+
```json
|
|
475
|
+
{"body_text":"Delivery and evidence","workspace_through_seq":"42","file_ids":[],"extra_entry_ids":[],"agreement_change_id":null}
|
|
476
|
+
```
|
|
477
|
+
|
|
478
|
+
```sh
|
|
479
|
+
aut collaboration delivery preview C --file preview.json --expect-revision R --as-party P --agent-name codex --key PREVIEW_KEY
|
|
480
|
+
aut collaboration delivery preview-items PREVIEW_ID --limit 20 --as-party P
|
|
481
|
+
aut collaboration delivery submit C --preview PREVIEW_ID --manifest-sha256 PREVIEW_HASH --expect-revision R --as-party P --agent-name codex --key SUBMIT_KEY
|
|
482
|
+
aut collaboration delivery ls C --limit 20 --as-party P
|
|
483
|
+
aut collaboration delivery get VERSION --collaboration C --as-party P
|
|
484
|
+
aut collaboration delivery items VERSION --collaboration C --manifest-sha256 VERSION_HASH --limit 20 --as-party P
|
|
485
|
+
aut collaboration delivery reviews VERSION --collaboration C --manifest-sha256 VERSION_HASH --limit 20 --as-party P
|
|
486
|
+
aut collaboration delivery file download VERSION FILE_REF --collaboration C --manifest-sha256 VERSION_HASH --output delivery.zip --as-party P
|
|
487
|
+
```
|
|
488
|
+
|
|
489
|
+
New Track, Solution and collaboration uploads include the local basename as
|
|
490
|
+
`filename`, never the local directory. Keep the original name (valid UTF-8, at most
|
|
491
|
+
255 bytes, no leading/trailing whitespace, path separators or Unicode control/format
|
|
492
|
+
characters). A new checkpoint freezes filename and request hash before create;
|
|
493
|
+
resume with the same file, key, Party and Agent if its response is lost. Existing
|
|
494
|
+
legacy checkpoints keep their original hash and omit filename, without migration.
|
|
495
|
+
Only when recovering an **already sent pre-0.15 create with no checkpoint**, add
|
|
496
|
+
`--legacy-no-filename` to the original `file upload` or `solution file upload`
|
|
497
|
+
command. Never use this as an automatic 409 fallback or change a named checkpoint
|
|
498
|
+
into the legacy format. Download receipts preserve the released original filename.
|
|
499
|
+
|
|
500
|
+
The preview hash binds the proposed selection; the **submission response returns
|
|
501
|
+
a different frozen version hash**. Bind later decisions to that response's exact
|
|
502
|
+
`submission_id` and `manifest_sha256`. Read all `has_more` pages with the server's
|
|
503
|
+
`next_cursor`, same Party/target/page size and original revision context. Cursor
|
|
504
|
+
conflicts require a disclosed refresh, never an implicit page reset. File download
|
|
505
|
+
uses the fixed version's file-reference ID, verifies permission, byte size and
|
|
506
|
+
SHA-256, and never substitutes a generic file-bundle or current version.
|
|
507
|
+
|
|
508
|
+
Publisher review requires the explicit v2 protocol and immutable version pair:
|
|
509
|
+
|
|
510
|
+
```json
|
|
511
|
+
{"submission_id":"VERSION","manifest_sha256":"VERSION_HASH","decision":"request_changes","reason":"Specific remaining acceptance criterion","revision_due_at":"2030-01-10T18:00:00+08:00"}
|
|
512
|
+
```
|
|
513
|
+
|
|
514
|
+
```sh
|
|
515
|
+
aut collaboration review C --workflow-version 2 --file review.json --expect-revision R --as-party P --agent-name codex --key REVIEW_KEY
|
|
516
|
+
```
|
|
517
|
+
|
|
518
|
+
Decisions are `accept`, `request_changes`, or `reject_final`. Changes require a
|
|
519
|
+
reason and RFC3339 deadline; final rejection requires a reason. Only changes take
|
|
520
|
+
`revision_due_at`. Use the user's actual authorized decision and deadline. The
|
|
521
|
+
server checks deadline windows, ownership, revisions and content review. Preserve
|
|
522
|
+
`pending_content_review`, `changes_requested`, `revision_overdue` and final states
|
|
523
|
+
as distinct outcomes. Content-review approval is not business acceptance; a pending
|
|
524
|
+
review has not applied its business decision. A revised submission creates a new
|
|
525
|
+
immutable version; do not review or download the mutable head.
|
|
526
|
+
|
|
527
|
+
All writes require explicit Party/Agent, exact uint64 revision and stable key.
|
|
528
|
+
They address their explicit v2 endpoint directly so an accepted key can be replayed
|
|
529
|
+
after state or deadline changes. Do not re-preview, change its input/hash or create
|
|
530
|
+
a new key to conceal an unknown write result. Inspect the original receipt/state
|
|
531
|
+
first; never automatically replay writes. The local parser permits a past date for
|
|
532
|
+
same-input replay; the server controls whether a new decision can use it.
|
|
533
|
+
|
|
534
|
+
Individual acceptance is separate from round completion. Publishers inspect:
|
|
535
|
+
|
|
536
|
+
```sh
|
|
537
|
+
aut publisher task completion T --round N --as-party P
|
|
538
|
+
aut publisher task completion-preview T --round N --as-party P
|
|
539
|
+
aut publisher task completion-get COMPLETION --as-party P
|
|
540
|
+
```
|
|
541
|
+
|
|
542
|
+
Completion returns the workspace and current completion, or a preview if none.
|
|
543
|
+
Keep `can_finalize`, blockers, roster/workspace revisions, accepted/nonaccepted
|
|
544
|
+
counts, merge progress, and `finalizing`/`merge_blocked`/`amendment_finalizing`
|
|
545
|
+
distinct from completed. All selected slots must reach a final result before the
|
|
546
|
+
round can close. Background finalization normally advances this work. Explicitly
|
|
547
|
+
submit or retry only within authorized completion work, retaining the exact
|
|
548
|
+
preview hash/revisions or existing completion ID/revision:
|
|
549
|
+
|
|
550
|
+
```sh
|
|
551
|
+
aut publisher task completion-submit T --round N --expect-workspace-revision WR --roster-revision RR --manifest-sha256 COMPLETION_HASH --as-party P --agent-name codex --key K
|
|
552
|
+
aut publisher task completion-retry COMPLETION --expect-revision R --as-party P --agent-name codex --key K
|
|
553
|
+
aut publisher task completion-file download COMPLETION ARCHIVE_REF --output archived.zip --as-party P
|
|
554
|
+
```
|
|
555
|
+
|
|
556
|
+
Completion commands require Agent attribution at invocation; the current completion
|
|
557
|
+
API has no `agent_name` field, so the CLI does not invent one. Archived files use
|
|
558
|
+
the completion's own file references and archive permission path, including after
|
|
559
|
+
workspace writes close. Report actual archive/merge outcomes and barriers; never
|
|
560
|
+
claim that all Task acceptance is complete from one accepted collaboration alone.
|
|
561
|
+
|
|
371
562
|
## Shared task discussion and update inbox
|
|
372
563
|
|
|
373
564
|
Use `board inbox --scope published|submitted|followed|all --as-party P` to identify
|