agentos-decisions
Preserve unresolved Captain choices discovered by investigations or reviews and route their answers durably. Use before completing a Scout or structured review, when linking dependent Tasks to a Captain choice, and when recording or resolving the Captain's exact answer.
- License 许可
- MIT
- 所属仓库
- akua-dev/agentos
- 最近更新
- 2026-11-09
- Stars
- ★ 8
- Forks
- 0
01 前言 Front Matter
- name
- agentos-decisions
- description
- Preserve unresolved Captain choices discovered by investigations or reviews and route their answers durably. Use before completing a Scout or structured review, when linking dependent Tasks to a Captain choice, and when recording or resolving the Captain's exact answer.
02 资源文件 1
- 参考文档agents/openai.yaml205 B
03 SKILL.md 正文
Preserve Captain decisions
PostgreSQL Inbox owns the decision. Do not infer choices from report prose with a script, create a fake Task for the question, or add another decisions table.
Hold and attest
- Read the complete report or review surface and semantically inventory only genuine unresolved choices requiring the Captain.
- Give each choice a stable, privacy-safe key. Use
agentos.hold_captain_decision(task_id, key, subject, body, status_text). Exact retry is idempotent; a conflicting reuse fails closed. - Link accepted work that cannot proceed with
agentos.link_task_decision(task_id, key, status_text). The dependency lives in the Task's existingdependenciesarray. - Before ending a
scoutorreviewAssignment as completed, callagentos.attest_assignment_decisions(assignment_id, keys). Pass the complete unresolved set, including an explicit empty array. PostgreSQL rejects an omitted or partial inventory.
The originating Assignment may finish after attestation while its decision remains open. Completion, report archival, Pod loss or Agent retirement never resolve the Captain choice.
Present and resolve
- Present the outcome, options, consequence and requested choice in normal language. Do not expose internal "hold" mechanics in ordinary Captain chat.
- After the Captain answers, call
agentos.resolve_captain_decision(decision_id, exact_answer, status_text)in the same short transaction as any coupled local state changes. - Resolution stores the exact answer as an append-only Inbox reply, closes the original decision and removes matching Task dependency edges atomically. Supervision then re-evaluates newly unblocked work.
- A repeated identical resolution returns the existing answer. A different answer for an already resolved decision fails closed and requires explicit follow-up rather than history rewriting.
Fleet-wide status reads structured Inbox and Task state. Never reconstruct open choices by scraping old reports, terminal output, visual artifacts or chat.
04 同仓库更多 Skills
example-replacement
Reconcile the example replacement AgentOS distribution.
example-additive
Inspect the example additive AgentOS behavior.
agentos-upgrade
Upgrade one persistent AgentOS Mate or, from First Mate with exact Captain authority, every active persistent Mate in one Fleet to an exact published stable release, including its run-once released database migrations. Use for stable First- or Second-Mate updates, resumed post-replacement verification, and authorized rollback boundaries. Do not use for dogfood, Crewmates, provisioning, retired Mates, services, or another Fleet.
agentos-supervision
Reconcile and supervise an AgentOS Mate's direct reports across PostgreSQL, Kubernetes, Herdr, PVCs, and Git. Use at every First- or Second-Mate session start, after restart or compaction, while delegated work is active, when Inbox or runtime state changes, and for blocked, stale, stuck, failed, interrupted, or recovering agents.
agentos-secrets
Safely create, retry, rotate, take over, roll back, project, and revoke AgentOS-managed Kubernetes Secrets without retaining or printing credential bytes. Use whenever an AgentOS workflow moves credential files into Kubernetes, changes an existing managed Secret, verifies a projected credential, encounters conflicting Secret ownership or legacy annotations, or retires a Kubernetes-delivered credential.
agentos-runtime
Inspect, create, and operate AgentOS runtime pods, Kustomize overlays, Herdr sessions, Mise toolchains, agent worktrees, terminals, PVCs, Kubernetes health, attach paths and runtime recovery. Use for normal First- or Second-Mate Kubernetes operations, child-Agent workload creation, tool resolution, stuck-agent debugging, remote terminal access, pod or session recovery, and readiness diagnosis.