@skrr-ai/cli 0.1.150 → 0.1.151
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 +20 -20
- package/dist/base-command.d.ts +6 -6
- package/dist/base-command.js +26 -26
- package/dist/commands/agenda/trigger/list.d.ts +1 -1
- package/dist/commands/agenda/trigger/list.js +6 -6
- package/dist/commands/agents/always-on/disable.js +10 -3
- package/dist/commands/agents/always-on/enable.js +1 -1
- package/dist/commands/agents/always-on/reconcile.js +1 -1
- package/dist/commands/agents/always-on/status.js +31 -8
- package/dist/commands/agents/create.d.ts +2 -2
- package/dist/commands/agents/create.js +12 -12
- package/dist/commands/agents/egress.js +1 -1
- package/dist/commands/agents/list.d.ts +1 -1
- package/dist/commands/agents/list.js +1 -1
- package/dist/commands/agents/roles/capture.d.ts +1 -1
- package/dist/commands/agents/roles/capture.js +2 -2
- package/dist/commands/agents/roles/install.js +1 -1
- package/dist/commands/agents/spawn.js +38 -38
- package/dist/commands/agents/update.d.ts +1 -1
- package/dist/commands/agents/update.js +3 -3
- package/dist/commands/code/jobs/show.js +1 -1
- package/dist/commands/compass/archive.d.ts +1 -1
- package/dist/commands/compass/archive.js +1 -1
- package/dist/commands/compass/create.js +1 -1
- package/dist/commands/compass/{commitments.d.ts → duties.d.ts} +5 -5
- package/dist/commands/compass/{commitments.js → duties.js} +14 -14
- package/dist/commands/compass/trace.d.ts +1 -1
- package/dist/commands/compass/trace.js +2 -2
- package/dist/commands/convos/messages.js +2 -1
- package/dist/commands/doctor.d.ts +1 -1
- package/dist/commands/doctor.js +1 -1
- package/dist/commands/{commitments → duties}/accounting.d.ts +7 -7
- package/dist/commands/{commitments → duties}/accounting.js +13 -13
- package/dist/commands/{commitments → duties}/action-history.d.ts +3 -3
- package/dist/commands/{commitments → duties}/action-history.js +12 -12
- package/dist/commands/{commitments → duties}/action-proposal.d.ts +2 -2
- package/dist/commands/{commitments → duties}/action-proposal.js +6 -6
- package/dist/commands/{commitments → duties}/action-proposals/decide.d.ts +2 -2
- package/dist/commands/{commitments → duties}/action-proposals/decide.js +8 -8
- package/dist/commands/{commitments → duties}/action-proposals/execute.d.ts +2 -2
- package/dist/commands/{commitments → duties}/action-proposals/execute.js +7 -7
- package/dist/commands/{commitments → duties}/action-proposals/propose.d.ts +4 -4
- package/dist/commands/{commitments → duties}/action-proposals/propose.js +15 -15
- package/dist/commands/{commitments → duties}/action-proposals.d.ts +1 -1
- package/dist/commands/{commitments → duties}/action-proposals.js +6 -6
- package/dist/commands/{commitments → duties}/analytics/detail.d.ts +5 -5
- package/dist/commands/{commitments → duties}/analytics/detail.js +13 -13
- package/dist/commands/{commitments → duties}/analytics/index.d.ts +5 -5
- package/dist/commands/{commitments → duties}/analytics/index.js +30 -30
- package/dist/commands/{commitments → duties}/analytics/replay.d.ts +3 -3
- package/dist/commands/{commitments → duties}/analytics/replay.js +11 -11
- package/dist/commands/{commitments → duties}/attach.d.ts +3 -3
- package/dist/commands/{commitments → duties}/attach.js +21 -21
- package/dist/commands/{commitments → duties}/bundle.d.ts +1 -1
- package/dist/commands/{commitments → duties}/bundle.js +7 -7
- package/dist/commands/{commitments → duties}/cadence-decisions.d.ts +3 -3
- package/dist/commands/duties/cadence-decisions.js +41 -0
- package/dist/commands/{commitments → duties}/cadence-requests/decide.d.ts +4 -4
- package/dist/commands/{commitments → duties}/cadence-requests/decide.js +11 -11
- package/dist/commands/{commitments → duties}/case.d.ts +2 -2
- package/dist/commands/{commitments → duties}/case.js +8 -8
- package/dist/commands/{commitments → duties}/cases.d.ts +2 -2
- package/dist/commands/{commitments → duties}/cases.js +9 -9
- package/dist/commands/{commitments → duties}/check-now.d.ts +6 -6
- package/dist/commands/{commitments → duties}/check-now.js +29 -29
- package/dist/commands/{commitments → duties}/checks.d.ts +3 -3
- package/dist/commands/{commitments → duties}/checks.js +13 -13
- package/dist/commands/{commitments → duties}/complete.d.ts +2 -2
- package/dist/commands/duties/complete.js +40 -0
- package/dist/commands/{commitments → duties}/control/apply.d.ts +1 -1
- package/dist/commands/{commitments → duties}/control/apply.js +7 -7
- package/dist/commands/{commitments → duties}/control/preview.d.ts +1 -1
- package/dist/commands/{commitments → duties}/control/preview.js +8 -8
- package/dist/commands/{commitments → duties}/control/show.d.ts +1 -1
- package/dist/commands/{commitments → duties}/control/show.js +6 -6
- package/dist/commands/{commitments → duties}/cost.d.ts +6 -6
- package/dist/commands/{commitments → duties}/cost.js +14 -14
- package/dist/commands/{commitments → duties}/create.d.ts +8 -8
- package/dist/commands/{commitments → duties}/create.js +92 -92
- package/dist/commands/{commitments → duties}/cycles.d.ts +2 -2
- package/dist/commands/{commitments → duties}/cycles.js +11 -11
- package/dist/commands/{commitments → duties}/decide-remediation.d.ts +2 -2
- package/dist/commands/{commitments → duties}/decide-remediation.js +6 -6
- package/dist/commands/{commitments → duties}/delete.d.ts +4 -4
- package/dist/commands/{commitments → duties}/delete.js +24 -24
- package/dist/commands/{commitments → duties}/delivery.d.ts +1 -1
- package/dist/commands/{commitments → duties}/delivery.js +15 -15
- package/dist/commands/{commitments → duties}/detach.d.ts +3 -3
- package/dist/commands/{commitments → duties}/detach.js +20 -20
- package/dist/commands/{commitments → duties}/doctor.d.ts +4 -4
- package/dist/commands/{commitments → duties}/doctor.js +21 -21
- package/dist/commands/{commitments → duties}/effective-policy.d.ts +3 -3
- package/dist/commands/{commitments → duties}/effective-policy.js +24 -24
- package/dist/commands/{commitments → duties}/endpoints/connect.d.ts +2 -2
- package/dist/commands/{commitments → duties}/endpoints/connect.js +10 -10
- package/dist/commands/{commitments → duties}/endpoints/create.d.ts +3 -3
- package/dist/commands/{commitments → duties}/endpoints/create.js +16 -16
- package/dist/commands/{commitments → duties}/endpoints/delete.d.ts +3 -3
- package/dist/commands/{commitments → duties}/endpoints/delete.js +11 -11
- package/dist/commands/{commitments → duties}/endpoints/health.d.ts +2 -2
- package/dist/commands/{commitments → duties}/endpoints/health.js +10 -10
- package/dist/commands/{commitments → duties}/endpoints/list.d.ts +3 -3
- package/dist/commands/{commitments → duties}/endpoints/list.js +11 -11
- package/dist/commands/{commitments → duties}/endpoints/revoke.d.ts +4 -4
- package/dist/commands/{commitments → duties}/endpoints/revoke.js +13 -13
- package/dist/commands/{commitments → duties}/evaluations.d.ts +2 -2
- package/dist/commands/{commitments → duties}/evaluations.js +8 -8
- package/dist/commands/{commitments → duties}/execute-remediation.d.ts +2 -2
- package/dist/commands/{commitments → duties}/execute-remediation.js +7 -7
- package/dist/commands/{commitments → duties}/explain.d.ts +2 -2
- package/dist/commands/{commitments → duties}/explain.js +13 -13
- package/dist/commands/{commitments → duties}/export.d.ts +3 -3
- package/dist/commands/{commitments → duties}/export.js +15 -15
- package/dist/commands/{commitments → duties}/feedback.d.ts +4 -4
- package/dist/commands/{commitments → duties}/feedback.js +13 -13
- package/dist/commands/{commitments → duties}/fork.d.ts +3 -3
- package/dist/commands/{commitments → duties}/fork.js +11 -11
- package/dist/commands/{commitments → duties}/goals/link.d.ts +6 -6
- package/dist/commands/duties/goals/link.js +41 -0
- package/dist/commands/{commitments → duties}/goals/unlink.d.ts +4 -4
- package/dist/commands/duties/goals/unlink.js +37 -0
- package/dist/commands/{commitments → duties}/handover.d.ts +5 -5
- package/dist/commands/{commitments → duties}/handover.js +21 -21
- package/dist/commands/{commitments → duties}/hypotheses.d.ts +3 -3
- package/dist/commands/{commitments → duties}/hypotheses.js +13 -13
- package/dist/commands/{commitments → duties}/import.d.ts +2 -2
- package/dist/commands/{commitments → duties}/import.js +10 -10
- package/dist/commands/{commitments → duties}/ledger.d.ts +4 -4
- package/dist/commands/{commitments → duties}/ledger.js +12 -12
- package/dist/commands/{commitments → duties}/lineage.d.ts +5 -5
- package/dist/commands/duties/lineage.js +43 -0
- package/dist/commands/{commitments → duties}/links/create.d.ts +2 -2
- package/dist/commands/{commitments → duties}/links/create.js +9 -9
- package/dist/commands/{commitments → duties}/links/detach.d.ts +2 -2
- package/dist/commands/{commitments → duties}/links/detach.js +7 -7
- package/dist/commands/{commitments → duties}/links/list.d.ts +2 -2
- package/dist/commands/{commitments → duties}/links/list.js +9 -9
- package/dist/commands/{commitments → duties}/links/update.d.ts +2 -2
- package/dist/commands/{commitments → duties}/links/update.js +7 -7
- package/dist/commands/{commitments → duties}/list.d.ts +3 -3
- package/dist/commands/{commitments → duties}/list.js +17 -17
- package/dist/commands/{commitments → duties}/liveness.d.ts +6 -6
- package/dist/commands/{commitments → duties}/liveness.js +13 -13
- package/dist/commands/{commitments → duties}/metrics.d.ts +3 -3
- package/dist/commands/{commitments → duties}/metrics.js +12 -12
- package/dist/commands/{commitments → duties}/next-tick.d.ts +7 -7
- package/dist/commands/{commitments → duties}/next-tick.js +14 -14
- package/dist/commands/{commitments → duties}/observation/probe.d.ts +1 -1
- package/dist/commands/{commitments → duties}/observation/probe.js +12 -12
- package/dist/commands/{commitments → duties}/observation/summary.d.ts +1 -1
- package/dist/commands/{commitments → duties}/observation/summary.js +5 -5
- package/dist/commands/{commitments → duties}/observations.d.ts +4 -4
- package/dist/commands/{commitments → duties}/observations.js +18 -18
- package/dist/commands/{commitments → duties}/open.d.ts +1 -1
- package/dist/commands/{commitments → duties}/open.js +13 -13
- package/dist/commands/{commitments → duties}/operating-review.d.ts +5 -5
- package/dist/commands/{commitments → duties}/operating-review.js +21 -21
- package/dist/commands/{commitments → duties}/pack/activate.d.ts +1 -1
- package/dist/commands/{commitments → duties}/pack/activate.js +6 -6
- package/dist/commands/{commitments → duties}/pack/bind.d.ts +4 -4
- package/dist/commands/{commitments → duties}/pack/bind.js +19 -19
- package/dist/commands/{commitments → duties}/pack/list.d.ts +2 -2
- package/dist/commands/{commitments → duties}/pack/list.js +10 -10
- package/dist/commands/{commitments → duties}/pack/plan.d.ts +3 -3
- package/dist/commands/{commitments → duties}/pack/plan.js +12 -12
- package/dist/commands/{commitments → duties}/pack/preflight.d.ts +3 -3
- package/dist/commands/{commitments → duties}/pack/preflight.js +10 -10
- package/dist/commands/{commitments → duties}/patch.d.ts +1 -1
- package/dist/commands/{commitments → duties}/patch.js +7 -7
- package/dist/commands/{commitments → duties}/pause.d.ts +2 -2
- package/dist/commands/{commitments → duties}/pause.js +16 -16
- package/dist/commands/{commitments → duties}/plan.d.ts +4 -4
- package/dist/commands/{commitments → duties}/plan.js +20 -20
- package/dist/commands/{commitments → duties}/preflight.d.ts +8 -8
- package/dist/commands/{commitments → duties}/preflight.js +32 -32
- package/dist/commands/{commitments → duties}/propose-remediation.d.ts +2 -2
- package/dist/commands/{commitments → duties}/propose-remediation.js +6 -6
- package/dist/commands/{commitments → duties}/readiness/show.d.ts +1 -1
- package/dist/commands/{commitments → duties}/readiness/show.js +6 -6
- package/dist/commands/{commitments → duties}/readiness/verify.d.ts +1 -1
- package/dist/commands/{commitments → duties}/readiness/verify.js +7 -7
- package/dist/commands/{commitments → duties}/receipt-metrics.d.ts +4 -4
- package/dist/commands/{commitments → duties}/receipt-metrics.js +16 -16
- package/dist/commands/{commitments → duties}/receipt.d.ts +1 -1
- package/dist/commands/{commitments → duties}/receipt.js +10 -10
- package/dist/commands/{commitments → duties}/reflect.d.ts +4 -4
- package/dist/commands/{commitments → duties}/reflect.js +12 -12
- package/dist/commands/{commitments → duties}/reflection-decision.d.ts +2 -2
- package/dist/commands/{commitments → duties}/reflection-decision.js +7 -7
- package/dist/commands/{commitments → duties}/reflection.d.ts +2 -2
- package/dist/commands/{commitments → duties}/reflection.js +9 -9
- package/dist/commands/{commitments → duties}/remediate.d.ts +5 -5
- package/dist/commands/{commitments → duties}/remediate.js +14 -14
- package/dist/commands/{commitments → duties}/remediation-proposal.d.ts +2 -2
- package/dist/commands/{commitments → duties}/remediation-proposal.js +7 -7
- package/dist/commands/{commitments → duties}/remediation-proposals.d.ts +2 -2
- package/dist/commands/{commitments → duties}/remediation-proposals.js +8 -8
- package/dist/commands/{commitments → duties}/reports.d.ts +5 -5
- package/dist/commands/{commitments → duties}/reports.js +35 -35
- package/dist/commands/{commitments → duties}/restore.d.ts +2 -2
- package/dist/commands/duties/restore.js +46 -0
- package/dist/commands/{commitments → duties}/resume.d.ts +2 -2
- package/dist/commands/duties/resume.js +37 -0
- package/dist/commands/{commitments → duties}/roster.d.ts +2 -2
- package/dist/commands/duties/roster.js +39 -0
- package/dist/commands/{commitments → duties}/show.d.ts +7 -7
- package/dist/commands/{commitments → duties}/show.js +40 -40
- package/dist/commands/{commitments → duties}/status.d.ts +3 -3
- package/dist/commands/duties/status.js +41 -0
- package/dist/commands/{commitments → duties}/subject.d.ts +4 -4
- package/dist/commands/{commitments → duties}/subject.js +29 -29
- package/dist/commands/{commitments → duties}/trace.d.ts +3 -3
- package/dist/commands/{commitments → duties}/trace.js +12 -12
- package/dist/commands/{commitments → duties}/trigger-status.d.ts +6 -6
- package/dist/commands/{commitments → duties}/trigger-status.js +19 -19
- package/dist/commands/{commitments → duties}/update.d.ts +5 -5
- package/dist/commands/{commitments → duties}/update.js +64 -64
- package/dist/commands/{commitments → duties}/wake-capabilities.d.ts +6 -6
- package/dist/commands/{commitments → duties}/wake-capabilities.js +22 -22
- package/dist/commands/{commitments → duties}/work-plan.d.ts +1 -1
- package/dist/commands/{commitments → duties}/work-plan.js +6 -6
- package/dist/commands/goals/key-results/show.js +2 -1
- package/dist/commands/goals/plan-now.js +2 -2
- package/dist/commands/goals/planner-compare.d.ts +1 -1
- package/dist/commands/goals/planner-compare.js +2 -2
- package/dist/commands/grants/create.d.ts +1 -1
- package/dist/commands/grants/create.js +9 -9
- package/dist/commands/grants/list.d.ts +1 -1
- package/dist/commands/grants/list.js +2 -2
- package/dist/commands/initiatives/list.d.ts +1 -1
- package/dist/commands/initiatives/list.js +1 -1
- package/dist/commands/measures/create.d.ts +2 -2
- package/dist/commands/measures/create.js +4 -4
- package/dist/commands/measures/list.d.ts +1 -1
- package/dist/commands/measures/list.js +2 -2
- package/dist/commands/northstars/create.js +4 -4
- package/dist/commands/northstars/delete.d.ts +3 -3
- package/dist/commands/northstars/delete.js +8 -8
- package/dist/commands/northstars/governance/configure.js +15 -15
- package/dist/commands/northstars/intents/decide.d.ts +1 -1
- package/dist/commands/northstars/intents/decide.js +1 -1
- package/dist/commands/northstars/link.d.ts +4 -4
- package/dist/commands/northstars/link.js +8 -8
- package/dist/commands/northstars/list.d.ts +2 -2
- package/dist/commands/northstars/list.js +3 -3
- package/dist/commands/northstars/recommendations/apply.d.ts +1 -1
- package/dist/commands/northstars/recommendations/apply.js +2 -2
- package/dist/commands/northstars/review-now.js +2 -2
- package/dist/commands/northstars/show.d.ts +3 -3
- package/dist/commands/northstars/show.js +5 -5
- package/dist/commands/northstars/unlink.d.ts +3 -3
- package/dist/commands/northstars/unlink.js +6 -6
- package/dist/commands/northstars/update.js +3 -3
- package/dist/commands/proposals/list.d.ts +3 -3
- package/dist/commands/proposals/list.js +7 -7
- package/dist/commands/spaces/auto-executor/compare.js +1 -1
- package/dist/commands/spaces/auto-executor/runs.js +1 -1
- package/dist/commands/spaces/heartbeats/list.js +2 -2
- package/dist/commands/spaces/index.js +2 -2
- package/dist/commands/spaces/list.d.ts +1 -1
- package/dist/commands/spaces/list.js +1 -1
- package/dist/commands/spaces/loops/migrate.d.ts +1 -1
- package/dist/commands/spaces/loops/migrate.js +1 -1
- package/dist/commands/spaces/loops/release.d.ts +1 -1
- package/dist/commands/spaces/loops/release.js +10 -10
- package/dist/commands/spaces/notebook.d.ts +2 -2
- package/dist/commands/spaces/notebook.js +2 -2
- package/dist/commands/spaces/proposals/discard.js +1 -1
- package/dist/commands/spaces/proposals/keep.js +1 -1
- package/dist/commands/spaces/triggers/show.js +3 -3
- package/dist/commands/spaces/write-policy/set.js +1 -1
- package/dist/commands/store/uninstall.js +2 -2
- package/dist/commands/subscriptions/health.d.ts +2 -2
- package/dist/commands/subscriptions/health.js +2 -2
- package/dist/commands/subscriptions/status.js +2 -2
- package/dist/commands/subscriptions/subscribe.js +4 -4
- package/dist/commands/tasks/create.d.ts +20 -1
- package/dist/commands/tasks/create.js +44 -3
- package/dist/commands/tasks/list.d.ts +7 -1
- package/dist/commands/tasks/list.js +2 -1
- package/dist/generated/agent-guides.json +496 -496
- package/dist/generated/managed-instruction-guides.json +2 -2
- package/dist/hooks/command-not-found.d.ts +1 -1
- package/dist/hooks/command-not-found.js +1 -1
- package/dist/lib/agent-chat-start.js +2 -1
- package/dist/lib/agent-trigger-listing.d.ts +4 -4
- package/dist/lib/agent-trigger-listing.js +7 -7
- package/dist/lib/always-on-command-result.d.ts +8 -1
- package/dist/lib/always-on-command-result.js +11 -2
- package/dist/lib/auth-failure.js +1 -1
- package/dist/lib/capability-matrix.d.ts +3 -3
- package/dist/lib/capability-matrix.js +9 -9
- package/dist/lib/command-hygiene.js +6 -6
- package/dist/lib/command-miss.js +1 -1
- package/dist/lib/compass-refusals.d.ts +1 -1
- package/dist/lib/compass-refusals.js +1 -1
- package/dist/lib/compasses.d.ts +5 -5
- package/dist/lib/compasses.js +15 -15
- package/dist/lib/dedicated-machines.js +2 -1
- package/dist/lib/dedicated-power.js +2 -0
- package/dist/lib/{commitments.d.ts → duties.d.ts} +198 -198
- package/dist/lib/{commitments.js → duties.js} +282 -282
- package/dist/lib/{commitment-analytics.d.ts → duty-analytics.d.ts} +18 -18
- package/dist/lib/{commitment-analytics.js → duty-analytics.js} +12 -12
- package/dist/lib/{commitment-attention-copy.d.ts → duty-attention-copy.d.ts} +6 -6
- package/dist/lib/{commitment-attention-copy.js → duty-attention-copy.js} +8 -8
- package/dist/lib/{commitment-endpoints.d.ts → duty-endpoints.d.ts} +6 -6
- package/dist/lib/{commitment-endpoints.js → duty-endpoints.js} +10 -10
- package/dist/lib/{commitment-event-wakes.d.ts → duty-event-wakes.d.ts} +2 -2
- package/dist/lib/{commitment-event-wakes.js → duty-event-wakes.js} +2 -2
- package/dist/lib/{commitment-ledgers.js → duty-ledgers.js} +3 -3
- package/dist/lib/{commitment-loop-status.d.ts → duty-loop-status.d.ts} +11 -11
- package/dist/lib/{commitment-loop-status.js → duty-loop-status.js} +22 -22
- package/dist/lib/{commitment-product.d.ts → duty-product.d.ts} +6 -6
- package/dist/lib/{commitment-product.js → duty-product.js} +5 -5
- package/dist/lib/{commitment-terms.d.ts → duty-terms.d.ts} +9 -9
- package/dist/lib/{commitment-terms.js → duty-terms.js} +21 -21
- package/dist/lib/entity-open.d.ts +1 -1
- package/dist/lib/entity-open.js +1 -1
- package/dist/lib/format.d.ts +1 -1
- package/dist/lib/grants.d.ts +3 -3
- package/dist/lib/grants.js +2 -2
- package/dist/lib/initiatives.js +4 -4
- package/dist/lib/node-adapter.js +1 -1
- package/dist/lib/northstars.d.ts +13 -13
- package/dist/lib/northstars.js +56 -56
- package/dist/lib/open-target.js +1 -1
- package/dist/lib/preflight-copy.js +5 -5
- package/dist/lib/proactiveApi.d.ts +4 -4
- package/dist/lib/proposals.js +16 -16
- package/dist/lib/responsibility-controls.d.ts +1 -1
- package/dist/lib/responsibility-controls.js +6 -6
- package/dist/lib/roles.d.ts +1 -1
- package/dist/lib/schedule.d.ts +5 -5
- package/dist/lib/schedule.js +1 -1
- package/dist/lib/session-task-write.d.ts +1 -1
- package/dist/lib/session-task-write.js +2 -2
- package/dist/lib/space-loop-migration.js +6 -6
- package/dist/lib/space-notebook.js +2 -2
- package/dist/lib/space-write-policy.js +2 -2
- package/dist/lib/stewardship-output.js +2 -2
- package/dist/lib/task-spec-verification.js +1 -1
- package/dist/lib/tasks.d.ts +1 -1
- package/dist/lib/tasks.js +8 -8
- package/dist/lib/triggers.d.ts +3 -3
- package/dist/lib/triggers.js +11 -10
- package/dist/lib/usage-discovery.js +2 -4
- package/dist/lib/web-url.d.ts +6 -6
- package/dist/lib/web-url.js +13 -13
- package/dist/lib/workspaces.d.ts +4 -4
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/{commitmentExecutionContract.d.ts → dutyExecutionContract.d.ts} +7 -7
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/{commitmentExecutionContract.js → dutyExecutionContract.js} +22 -22
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/executorStopReceipt.js +1 -1
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/executorStopReceiptV2.js +1 -1
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/sessionPermissionAuthority.d.ts +9 -9
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/sessionPermissionAuthority.js +5 -5
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/sessionRevocation.d.ts +2 -2
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/sessionRevocation.js +4 -4
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/types.d.ts +1 -1
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/types.js +1 -1
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/workspaceIsolationProbeWire.d.ts +1 -1
- package/dist/node_modules/@skrr-ai/auth-core/dist/esm/{commitmentExecutionContract.d.ts → dutyExecutionContract.d.ts} +7 -7
- package/dist/node_modules/@skrr-ai/auth-core/dist/esm/{commitmentExecutionContract.js → dutyExecutionContract.js} +16 -16
- package/dist/node_modules/@skrr-ai/auth-core/dist/esm/executorStopReceipt.js +1 -1
- package/dist/node_modules/@skrr-ai/auth-core/dist/esm/executorStopReceiptV2.js +1 -1
- package/dist/node_modules/@skrr-ai/auth-core/dist/esm/profilePorts.js +1 -1
- package/dist/node_modules/@skrr-ai/auth-core/dist/esm/sessionPermissionAuthority.d.ts +9 -9
- package/dist/node_modules/@skrr-ai/auth-core/dist/esm/sessionPermissionAuthority.js +8 -8
- package/dist/node_modules/@skrr-ai/auth-core/dist/esm/sessionRevocation.d.ts +2 -2
- package/dist/node_modules/@skrr-ai/auth-core/dist/esm/sessionRevocation.js +6 -6
- package/dist/node_modules/@skrr-ai/auth-core/dist/esm/types.d.ts +1 -1
- package/dist/node_modules/@skrr-ai/auth-core/dist/esm/types.js +1 -1
- package/dist/node_modules/@skrr-ai/auth-core/dist/esm/workspaceIsolationProbeWire.d.ts +1 -1
- package/dist/node_modules/@skrr-ai/auth-core/dist/esm/workspaceIsolationProbeWire.js +1 -1
- package/dist/node_modules/@skrr-ai/auth-core/package.json +6 -6
- package/dist/node_modules/@skrr-ai/data-provider/index.js +8150 -8140
- package/docs/v1/lookback-plans.md +1 -1
- package/oclif.manifest.json +5337 -5337
- package/package.json +16 -16
- package/dist/commands/commitments/cadence-decisions.js +0 -41
- package/dist/commands/commitments/complete.js +0 -40
- package/dist/commands/commitments/goals/link.js +0 -41
- package/dist/commands/commitments/goals/unlink.js +0 -37
- package/dist/commands/commitments/lineage.js +0 -43
- package/dist/commands/commitments/restore.js +0 -46
- package/dist/commands/commitments/resume.js +0 -37
- package/dist/commands/commitments/roster.js +0 -39
- package/dist/commands/commitments/status.js +0 -41
- /package/dist/lib/{commitment-ledgers.d.ts → duty-ledgers.d.ts} +0 -0
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"key": "oversky-task-management",
|
|
4
4
|
"name": "skrr Task Management",
|
|
5
5
|
"templateVersion": 23,
|
|
6
|
-
"body": "## OverSky Task Management\n\nUse `skrr` as the durable record for work that must outlive this conversation.\n\n### One concept, one record\n\n- **Task** says what is owed and where it stands.\n- **Expectation** says what must be true before the Task can close.\n- **Update** says what meaningfully changed during execution.\n- **Resume Point** says where one Run can safely continue after interruption.\n- **Result** says what the work concluded or returned.\n- **Deliverable** identifies a concrete Resource version produced by the work.\n- **Review** says whether another actor accepted one exact Result.\n- **Comment** is replyable collaboration.\n- **Activity** is the immutable audit projection. A Run transcript is detailed telemetry, not Activity.\n\nDo not put a Result in a Comment, use an Update as a transcript, or use review words such as\n“approved” for a domain conclusion such as NO-SHIP.\n\nThe platform derives Human, Agent, Run, session, and recording provenance from the authenticated\nruntime. Never supply or invent an Agent identity. An Update has one author; a multi-Agent summary\nmay cite contributors and their source Runs or Updates.\n\n### During execution: write Updates at meaningful boundaries\n\nDo not log routine reads, tool calls, heartbeats, token counts, or repeated “still working” narration.\nRecord an Update only when a future reader or replacement Run needs to know that shared state changed:\n\nEach type has a REQUIRED `--data` shape, and the array fields are required even when empty.\nOptional fields are marked `?`. The server rejects a missing required field, so guessing from the\nprose costs a round trip:\n\n- `progress`: a material part is complete.\n `{completedSinceLast: string[], nextActions: string[], currentFocus?}`\n- `finding`: a newly discovered fact. `impact` is optional; the evidence references are not.\n `{finding, evidenceRefs: [], impact?, severity?}`\n- `decision`: a choice now constrains the work.\n `{decision, rationale, alternativesConsidered?: string[]}`\n- `blocker`: work cannot continue. `nextOwner` is a principal OBJECT, not a name.\n `{cause, requiredAction, nextOwner: {kind: \"human\", userId}}`\n- `verification`: a claim was checked. `result` is one of `passed`, `failed`, `inconclusive`.\n `{claim, result, evidenceRefs: []}`\n- `ready_for_review`: created by Result submission; do not author it separately.\n\n`--reference <kind>:<id>` sets the Update's OWN references. It does not populate\n`data.evidenceRefs`, which belongs inside `--data`.\n\nUse one stable idempotency key only for retries of the identical write. Reusing it for different\ncontent is rejected.\n\nExample:\n\n```bash\nskrr tasks updates add <task-id> \\\n --type progress \\\n --summary \"Migration review complete\" \\\n --data '{\"completedSinceLast\":[\"Checked migrations 001-014\"],\"currentFocus\":\"Authorization review\",\"nextActions\":[\"Inspect legacy adapters\"]}' \\\n --idempotency-key \"<task-id>:migration-review\"\n```\n\nFor a decision:\n\n```bash\nskrr tasks updates add <task-id> \\\n --type decision \\\n --summary \"Use a first-class Resource identity\" \\\n --data '{\"decision\":\"Use WorkResource plus immutable versions\",\"rationale\":\"A URL can move and cannot identify the version a reviewer accepted\"}' \\\n --idempotency-key \"<task-id>:resource-model\"\n```\n\nFor a finding — `evidenceRefs` is required and may be empty:\n\n```bash\nskrr tasks updates add <task-id> \\\n --type finding \\\n --summary \"The closure gate reads assessments by exact specVersion\" \\\n --data '{\"finding\":\"A cosmetic title edit bumps specVersion, so every prior assessment stops counting\",\"impact\":\"A task with expectations cannot be closed after a rename\",\"evidenceRefs\":[{\"kind\":\"code\",\"uri\":\"api/server/services/TaskClosurePolicy/index.js\"}]}' \\\n --idempotency-key \"<task-id>:spec-bump-revocation\"\n```\n\nFor a blocker — `nextOwner` is a principal object:\n\n```bash\nskrr tasks updates add <task-id> \\\n --type blocker \\\n --summary \"Waiting on production database credentials\" \\\n --data '{\"cause\":\"The migration needs write access to the prod cluster\",\"requiredAction\":\"Grant the deploy role write access, or run the migration yourself\",\"nextOwner\":{\"kind\":\"human\",\"userId\":\"<user-id>\"}}' \\\n --idempotency-key \"<task-id>:needs-prod-credentials\"\n```\n\nFor a verification:\n\n```bash\nskrr tasks updates add <task-id> \\\n --type verification \\\n --summary \"Re-ran the closure flow end to end after the fix\" \\\n --data '{\"claim\":\"A renamed task with one assessed expectation can close\",\"result\":\"passed\",\"evidenceRefs\":[{\"kind\":\"task\",\"id\":\"<task-id>\"}]}' \\\n --idempotency-key \"<task-id>:closure-reverify\"\n```\n\n### Media: screenshots and recordings\n\n`--attach <path>` (repeatable) on `updates add`, `result submit`, `complete`, or `comments add`\nuploads a file as a Task asset and cites it; identical bytes dedupe. In-run proof goes on a\n`verification` or `progress` Update, the final before/after on the Result, never the description.\nAn upload is `self_reported` evidence and counts toward the storage quota. Images keep full\nresolution minus metadata (Runs get a model-sized copy); undecodable bytes get 422, a type the bytes\ncontradict 415, and SVG downloads as a file. An agent uploads evidence (the default) or\n`--role deliverable`; `input` is refused (403): ask a person to run `attachments set-role`. Cite a\ndeliverable as `--evidence task_attachment:<asset-id>` when you assess its Expectation.\n\n### Recovery: Update delta and Resume Point snapshot\n\nWhen a semantic boundary should also be resumable, add `--run-id` and `--resume` to the same Update\ncommand. The server commits the visible Update and the Run-bound Resume Point together. The snapshot\nmust be self-contained enough for another capable Agent to continue without replaying the transcript:\ncompleted work, current focus, next actions, open questions, and references to decisions, evidence,\nDeliverables, and durable workspace state.\n\nThe runtime may save a silent crash-safety snapshot with:\n\n```bash\nskrr tasks resume save <task-id> --run-id <run-id> --snapshot '<resume-json>'\n```\n\nNever put credentials, secrets, permission grants, bearer tokens, or leases in a Resume Point. A\nresumed Run reloads the current Task Revision, re-authorizes, validates referenced files/commits, and\nreads Updates recorded after the snapshot:\n\n```bash\nskrr tasks resume show <task-id> --run-id <run-id>\n```\n\n### Deliverables: lightweight input, first-class identity\n\nA user may provide one coordinate, but the platform records a WorkResource, its exact version, the\nTask relationship, and an evidence-backed availability observation. External reference is the\ndefault; OverSky-managed content is used only when retention, stable access, preview/search, or\npolicy requires a copy.\n\n```bash\nskrr tasks deliverable add <task-id> \\\n file/markdown:docs/reviews/report.md@docs/reviews/report.md \\\n --status in_review\n```\n\nA recording made by its producer is always self-reported; the caller cannot promote itself to a\nHuman confirmation, system observation, or provider receipt. A local path is only local availability. A commit, provider revision, digest, or managed object\nfreezes the exact version. Do not call “in the conversation” a Deliverable.\n\nA Human confirms the exact linked version, not a retyped URL or name:\n\n```bash\nskrr tasks deliverable confirm <task-id> <task-resource-link-id> --reason \"Opened and checked this exact version\"\n```\n\n### Result and Review are separate\n\nSubmit the finished answer once:\n\n```bash\nskrr tasks result submit <task-id> \\\n --summary \"NO-SHIP until remediation Gates A-D pass\" \\\n --conclusion-type release_recommendation \\\n --conclusion-json '{\"posture\":\"no_ship\"}' \\\n --deliverable <task-resource-link-id>\n```\n\nAn amendment creates a new Result version and explicitly supersedes the previous one. There is one\ncurrent Result; old versions remain in Activity and are not ordinary Updates.\n\nOnly another actor records acceptance, against that exact Result:\n\n```bash\nskrr tasks review <task-id> --result-id <result-id> --decision accepted --rationale \"Evidence checked\"\n```\n\n“Accepted” means the submitted work was accepted. NO-SHIP, BUY, REJECT, root cause, experiment\ndecision, and similar subject-matter conclusions belong in `Result.conclusion`, never in Review.\n\nUse `skrr tasks complete` only when submitting the Result and advancing workflow in one closeout.\nDo not call `tasks report` before or after it; `tasks complete` already creates the canonical Result.\n\nSubmitting a Result is not the same as closing the Task, and being an Agent is not by itself a\nreason to stop. Closing is always the closer's call — unmet Expectations or a Changes-requested\nReview do not prevent it; they are RECORDED on the close (`resolution.closure`), so closing over\nthem hides nothing and settles nothing. The one exception is an owner-declared required Review\n(`--review-policy required`): a non-owner cannot close without it — unless they close with\n`--force`, which records the override on the resolution — and the owner always can.\n\nSo do not predict the outcome. `result submit` reports where the Task stands after the write —\nread that, and if you need to ask again later:\n\n```bash\nskrr tasks expectations <task-id> # what is owed, and why the Result cannot be accepted yet\n```\n\nSay “ready for review” only when something you read actually said so.\n\n### Expectations\n\nExpectations are free text first. A typed check explains how the statement can be assessed; it never\nreplaces the sentence.\n\nAn Expectation is an obligation, not a lock: it does not stop a close, it is recorded on one — and\nclosing over it settles nothing. Write each one so it can\nbe judged — say what would satisfy it and how that could be checked — because an Expectation authored\nwithout a thought about verification is one you will later be unable to settle honestly. When you\ncreate several across several Tasks, say how many you created and who they fall to; a set of gates\nnobody was told about is work assigned by accident. A Deliverable requirement is one typed Expectation, not a second\n`requiredDeliverables` list. Actual Deliverables are recorded only after something exists.\n\nRead what is owed, then settle it — never rewrite the declaration to make it settleable:\n\n```bash\nskrr tasks expectations <task-id> # what is owed, and how far each one got\nskrr tasks expectations assess <task-id> <expectation-id> \\\n --decision met \\\n --reason \"Ran the suite named in the statement; 49/49 pass\" \\\n --evidence code:<commit>\nskrr tasks expectations assess <task-id> --all \\\n --decision met --reason \"...\" # every one still awaiting a judgement\n```\n\n**You may assess any Expectation that takes a judgement.** A `deliverable` Expectation is not one —\nit settles through its linked Resource and evidence, so record the Deliverable rather than\nassessing it. The assessment is recorded as YOURS — every surface shows `met (agent)` against\n`met (person)` — and a human can override it. The control is attribution, not permission, so what\nyou owe is not restraint but evidence: cite what you actually checked, and prefer `--evidence` and\n`--resource-link-id` over prose.\n\nAssess what you VERIFIED. Not what you intended, not what you inferred from having finished the\nwork. “I could not check this” is a real and useful answer — record it `unmet` with the reason\nrather than leaving it silent, because an unassessed Expectation and one you tried and failed to\nverify send the next reader to different places.\n\nA waiver is a judgement about scope — that this is no longer owed — and it stays a person's call:\nif the honest answer is \"this should be waived,\" say so in an Update or Comment and let a person\nrecord it. Do not delete the Expectation to hide that it was owed.\n\nChanging an Expectation's wording advances the Task specification and **revokes every assessment\nalready recorded** — fix the statement before people start settling it, not after.\n\n### Labels — say what PROGRAM this belongs to\n\nA label is cross-cutting classification: which recurring program a Space or Task\nbelongs to (`dogfood`, `incident`, `experiment`, `migration`), not what state it\nis in. Status, priority and assignee are first-class fields and already answer\ntheir own questions — a label that restates one is noise that will drift out of\nsync with the field it copies.\n\nThe vocabulary is DECLARED, not invented. Read it before you use it:\n\n```bash\nskrr labels list\n```\n\nAttach from that list, never a name you made up. A second spelling of an\nexisting label (`dog-food` beside `dogfood`) is worse than no label at all,\nbecause the whole value of one is that filtering on it returns everything:\n\n```bash\nskrr spaces labels add <space-id> --label <label-id>\nskrr tasks labels attach <task-id> --label <label-id>\n```\n\nCreate a label only when the program it names is real and recurring, and say\nwhich entities it applies to — a label created without `--applicable-to space`\ncannot be attached to a Space, which is how a vocabulary comes to exist that\nnothing can use:\n\n```bash\nskrr labels create --name <name> --applicable-to space --applicable-to task\n```\n\nWhen you create a Space or Task for a recurring program, label it as you create\nit (`--label <id>` on `spaces`, `tasks` and `goals create`). The create\nresponse carries a `_labelGuidance` hint naming the applicable vocabulary WITH\nITS IDS when you attached none — read it, and attach in one follow-up call if\none of them fits. It may also carry `suggested` — a proposal, not a decision;\nattach is your call. `skrr tasks labels suggest <task-id>` asks it of a Task.\n\nIf nothing in the vocabulary fits, attach nothing. \"No label\" is a correct\nanswer and a wrong label is not.\n\n### Comments and blockers\n\nUse a Comment only for a question, answer, or review discussion where a reply is useful. For a\nblocker, first record the typed blocker Update, then move the Task to blocked. Add a Comment only if\nsomeone actually needs to respond.\n\n### Creating and placing Tasks\n\nCreate a Task without asking when work needs tracking across meaningful steps, sessions, or\nfollow-up. Avoid duplicates and do not create Tasks for trivial actions that finish immediately.\n\n```bash\nskrr tasks list --q \"<relevant title>\"\nskrr tasks create --title \"<concise requested result>\" --description \"<scope and constraints>\" --json\nskrr tasks move <task-id> --status in_progress\n```\n\nA Space is a durable ownership, collaboration, and authorization boundary. Use an identified Space\nwhen the work clearly belongs there; otherwise create the Task unscoped. Ask before creating a new\nSpace. An Agent works a Task in a Space only as a Space member, or when it is shared with no one\nelse and its owner assigns and starts it; anything else is refused. Do not widen Agent membership\nmerely to force one task assignment.\n\n### Closing a Task out\n\nThe model above says what each record IS. This is the order they go in, and what each step can\nrefuse:\n\n1. **Record what exists** — `skrr tasks deliverable add`, binding it to the Expectation it answers\n with `--expectation <id>` whenever one applies. Evidence that arrives bound is evidence the next\n reader does not have to reconstruct.\n2. **Submit the answer** — `skrr tasks result submit`. This does not close the Task. Read what it\n reports back.\n3. **Read what is still owed** — `skrr tasks expectations <task-id>`.\n4. **Settle what you verified** — `skrr tasks expectations assess`, citing evidence. `--all` covers\n every Expectation still awaiting a judgement.\n5. **Read the Task state again and report THAT** — not what you intended it to be.\n\nTwo things still matter regardless of how complete the work is: an unmet Expectation, and a\n`changes_requested` Review. Neither blocks a close — but both are stamped onto it\n(`resolution.closure`), so closing over them is a recorded choice, not a clean finish. Neither is\na failure state; both are somebody's turn.\n\nStep 5 is the one that goes wrong quietly, and not only here: before reporting a check as passed,\nconfirm you measured what you think you measured. A pipeline's exit status is the LAST command's, so\n`cmd | tail` reports on `tail`. A filter may match something other than what you meant — a path\npattern can match the directory you are working in. When a result will be reported to a person as\nfact, re-run it in the simplest form that can only mean one thing.\n\nAcross a whole Space, `skrr tasks review-queue --space <space-id>` names every outstanding\njudgement at once, with its evidence and the command that settles it.\n\n### Share readable links and close the loop\n\nShare clickable Task, Space, Goal, and Commitment URLs, never bare IDs. Use the URL returned by the\nCLI; do not construct one. If needed:\n\n```bash\nskrr tasks show <task-id> --json\nskrr spaces show <space-id> --json\nskrr goals show <goal-id> --json\nskrr commitments show <commitment-id> --json\n```\n\nBefore your final response, verify every Task you created or touched reflects reality. If work is\nready for independent review, leave it in review. If blocked, record the blocker and required action.\nIf genuinely complete and accepted under the Task's policy, close it. Include the Task URL in the\nfinal handoff. Never claim a write succeeded unless the CLI returned success.\n\n### Coming back later\n\nYou can arrange to return to something. Four shapes, and picking the right one\nmatters more than the wording:\n\n**Reminder** — the user asked to be reminded. Keep their words; a reminder you\nhave rephrased into your own voice is no longer the thing they asked for.\n\n**Watch** — something has an asynchronous tail: CI, a review, an approval, a\nlong job, a metric. If the condition is machine-checkable (an endpoint plus a\npredicate), say so — that costs nothing and is guaranteed to terminate. Only\nwrite a prose check recipe when the check genuinely needs your judgement or your\ntools, because that one burns a full turn every time it runs. Always give it an\nabort condition: a watch that cannot stop is a leak.\n\n**Check-in** — you decided the conversation is worth returning to. This is\npermission AND restraint. Come back when you will have something worth saying —\na result that will have arrived, a decision that will be ripe, a thread you left\ngenuinely open. When you see one, arrange the return yourself and say in one\nline when you will look again. Do not ask whether you should: that hands the\nperson a decision they did not come to make. Do not come back to ask how it is\ngoing. A legacy check-in holds one pending return per conversation. For a sequence\nof checks, use one scheduled lookback plan with 1–10 lifetime steps. When you\nwake, read the original goal, current state and earlier outcomes. Saying\nnothing is a legitimate outcome and often the right one. Stop or cancel\nremaining checks when the work resolves, becomes obsolete or the person cancels.\n\n**Act** — a specific action you already know how to take and the user has already\nagreed to. Not for anything you would still need to ask about.\n\nSettle what you arranged. When you wake and the thing resolved, say so and close\nit out; when it did not, either come back once more with a reason or hand it to\nthe person. Leaving one armed forever is the failure mode here.\n\nFrom a local session, arrange these with `skrr followups` —\n`remind`, `watch`, `checkin`, `act` — and settle them with\n`skrr followups resolve <id> --outcome resolved`.\nFor a bounded lookback plan, use `skrr followups plans create --from-json plan.json`\nand inspect, revise or cancel it with `skrr followups plans` (read `--help`).\nUse 1–10 concrete checks, relative offsets from the completed reply or explicit\nabsolute/local times, and a stop condition. Omit a plan when none is useful.\nA saved plan is not necessarily armed; read the returned receipt before promising a return.\n",
|
|
7
|
-
"hash": "
|
|
6
|
+
"body": "## OverSky Task Management\n\nUse `skrr` as the durable record for work that must outlive this conversation.\n\n### One concept, one record\n\n- **Task** says what is owed and where it stands.\n- **Expectation** says what must be true before the Task can close.\n- **Update** says what meaningfully changed during execution.\n- **Resume Point** says where one Run can safely continue after interruption.\n- **Result** says what the work concluded or returned.\n- **Deliverable** identifies a concrete Resource version produced by the work.\n- **Review** says whether another actor accepted one exact Result.\n- **Comment** is replyable collaboration.\n- **Activity** is the immutable audit projection. A Run transcript is detailed telemetry, not Activity.\n\nDo not put a Result in a Comment, use an Update as a transcript, or use review words such as\n“approved” for a domain conclusion such as NO-SHIP.\n\nThe platform derives Human, Agent, Run, session, and recording provenance from the authenticated\nruntime. Never supply or invent an Agent identity. An Update has one author; a multi-Agent summary\nmay cite contributors and their source Runs or Updates.\n\n### During execution: write Updates at meaningful boundaries\n\nDo not log routine reads, tool calls, heartbeats, token counts, or repeated “still working” narration.\nRecord an Update only when a future reader or replacement Run needs to know that shared state changed:\n\nEach type has a REQUIRED `--data` shape, and the array fields are required even when empty.\nOptional fields are marked `?`. The server rejects a missing required field, so guessing from the\nprose costs a round trip:\n\n- `progress`: a material part is complete.\n `{completedSinceLast: string[], nextActions: string[], currentFocus?}`\n- `finding`: a newly discovered fact. `impact` is optional; the evidence references are not.\n `{finding, evidenceRefs: [], impact?, severity?}`\n- `decision`: a choice now constrains the work.\n `{decision, rationale, alternativesConsidered?: string[]}`\n- `blocker`: work cannot continue. `nextOwner` is a principal OBJECT, not a name.\n `{cause, requiredAction, nextOwner: {kind: \"human\", userId}}`\n- `verification`: a claim was checked. `result` is one of `passed`, `failed`, `inconclusive`.\n `{claim, result, evidenceRefs: []}`\n- `ready_for_review`: created by Result submission; do not author it separately.\n\n`--reference <kind>:<id>` sets the Update's OWN references. It does not populate\n`data.evidenceRefs`, which belongs inside `--data`.\n\nUse one stable idempotency key only for retries of the identical write. Reusing it for different\ncontent is rejected.\n\nExample:\n\n```bash\nskrr tasks updates add <task-id> \\\n --type progress \\\n --summary \"Migration review complete\" \\\n --data '{\"completedSinceLast\":[\"Checked migrations 001-014\"],\"currentFocus\":\"Authorization review\",\"nextActions\":[\"Inspect legacy adapters\"]}' \\\n --idempotency-key \"<task-id>:migration-review\"\n```\n\nFor a decision:\n\n```bash\nskrr tasks updates add <task-id> \\\n --type decision \\\n --summary \"Use a first-class Resource identity\" \\\n --data '{\"decision\":\"Use WorkResource plus immutable versions\",\"rationale\":\"A URL can move and cannot identify the version a reviewer accepted\"}' \\\n --idempotency-key \"<task-id>:resource-model\"\n```\n\nFor a finding — `evidenceRefs` is required and may be empty:\n\n```bash\nskrr tasks updates add <task-id> \\\n --type finding \\\n --summary \"The closure gate reads assessments by exact specVersion\" \\\n --data '{\"finding\":\"A cosmetic title edit bumps specVersion, so every prior assessment stops counting\",\"impact\":\"A task with expectations cannot be closed after a rename\",\"evidenceRefs\":[{\"kind\":\"code\",\"uri\":\"api/server/services/TaskClosurePolicy/index.js\"}]}' \\\n --idempotency-key \"<task-id>:spec-bump-revocation\"\n```\n\nFor a blocker — `nextOwner` is a principal object:\n\n```bash\nskrr tasks updates add <task-id> \\\n --type blocker \\\n --summary \"Waiting on production database credentials\" \\\n --data '{\"cause\":\"The migration needs write access to the prod cluster\",\"requiredAction\":\"Grant the deploy role write access, or run the migration yourself\",\"nextOwner\":{\"kind\":\"human\",\"userId\":\"<user-id>\"}}' \\\n --idempotency-key \"<task-id>:needs-prod-credentials\"\n```\n\nFor a verification:\n\n```bash\nskrr tasks updates add <task-id> \\\n --type verification \\\n --summary \"Re-ran the closure flow end to end after the fix\" \\\n --data '{\"claim\":\"A renamed task with one assessed expectation can close\",\"result\":\"passed\",\"evidenceRefs\":[{\"kind\":\"task\",\"id\":\"<task-id>\"}]}' \\\n --idempotency-key \"<task-id>:closure-reverify\"\n```\n\n### Media: screenshots and recordings\n\n`--attach <path>` (repeatable) on `updates add`, `result submit`, `complete`, or `comments add`\nuploads a file as a Task asset and cites it; identical bytes dedupe. In-run proof goes on a\n`verification` or `progress` Update, the final before/after on the Result, never the description.\nAn upload is `self_reported` evidence and counts toward the storage quota. Images keep full\nresolution minus metadata (Runs get a model-sized copy); undecodable bytes get 422, a type the bytes\ncontradict 415, and SVG downloads as a file. An agent uploads evidence (the default) or\n`--role deliverable`; `input` is refused (403): ask a person to run `attachments set-role`. Cite a\ndeliverable as `--evidence task_attachment:<asset-id>` when you assess its Expectation.\n\n### Recovery: Update delta and Resume Point snapshot\n\nWhen a semantic boundary should also be resumable, add `--run-id` and `--resume` to the same Update\ncommand. The server commits the visible Update and the Run-bound Resume Point together. The snapshot\nmust be self-contained enough for another capable Agent to continue without replaying the transcript:\ncompleted work, current focus, next actions, open questions, and references to decisions, evidence,\nDeliverables, and durable workspace state.\n\nThe runtime may save a silent crash-safety snapshot with:\n\n```bash\nskrr tasks resume save <task-id> --run-id <run-id> --snapshot '<resume-json>'\n```\n\nNever put credentials, secrets, permission grants, bearer tokens, or leases in a Resume Point. A\nresumed Run reloads the current Task Revision, re-authorizes, validates referenced files/commits, and\nreads Updates recorded after the snapshot:\n\n```bash\nskrr tasks resume show <task-id> --run-id <run-id>\n```\n\n### Deliverables: lightweight input, first-class identity\n\nA user may provide one coordinate, but the platform records a WorkResource, its exact version, the\nTask relationship, and an evidence-backed availability observation. External reference is the\ndefault; OverSky-managed content is used only when retention, stable access, preview/search, or\npolicy requires a copy.\n\n```bash\nskrr tasks deliverable add <task-id> \\\n file/markdown:docs/reviews/report.md@docs/reviews/report.md \\\n --status in_review\n```\n\nA recording made by its producer is always self-reported; the caller cannot promote itself to a\nHuman confirmation, system observation, or provider receipt. A local path is only local availability. A commit, provider revision, digest, or managed object\nfreezes the exact version. Do not call “in the conversation” a Deliverable.\n\nA Human confirms the exact linked version, not a retyped URL or name:\n\n```bash\nskrr tasks deliverable confirm <task-id> <task-resource-link-id> --reason \"Opened and checked this exact version\"\n```\n\n### Result and Review are separate\n\nSubmit the finished answer once:\n\n```bash\nskrr tasks result submit <task-id> \\\n --summary \"NO-SHIP until remediation Gates A-D pass\" \\\n --conclusion-type release_recommendation \\\n --conclusion-json '{\"posture\":\"no_ship\"}' \\\n --deliverable <task-resource-link-id>\n```\n\nAn amendment creates a new Result version and explicitly supersedes the previous one. There is one\ncurrent Result; old versions remain in Activity and are not ordinary Updates.\n\nOnly another actor records acceptance, against that exact Result:\n\n```bash\nskrr tasks review <task-id> --result-id <result-id> --decision accepted --rationale \"Evidence checked\"\n```\n\n“Accepted” means the submitted work was accepted. NO-SHIP, BUY, REJECT, root cause, experiment\ndecision, and similar subject-matter conclusions belong in `Result.conclusion`, never in Review.\n\nUse `skrr tasks complete` only when submitting the Result and advancing workflow in one closeout.\nDo not call `tasks report` before or after it; `tasks complete` already creates the canonical Result.\n\nSubmitting a Result is not the same as closing the Task, and being an Agent is not by itself a\nreason to stop. Closing is always the closer's call — unmet Expectations or a Changes-requested\nReview do not prevent it; they are RECORDED on the close (`resolution.closure`), so closing over\nthem hides nothing and settles nothing. The one exception is an owner-declared required Review\n(`--review-policy required`): a non-owner cannot close without it — unless they close with\n`--force`, which records the override on the resolution — and the owner always can.\n\nSo do not predict the outcome. `result submit` reports where the Task stands after the write —\nread that, and if you need to ask again later:\n\n```bash\nskrr tasks expectations <task-id> # what is owed, and why the Result cannot be accepted yet\n```\n\nSay “ready for review” only when something you read actually said so.\n\n### Expectations\n\nExpectations are free text first. A typed check explains how the statement can be assessed; it never\nreplaces the sentence.\n\nAn Expectation is an obligation, not a lock: it does not stop a close, it is recorded on one — and\nclosing over it settles nothing. Write each one so it can\nbe judged — say what would satisfy it and how that could be checked — because an Expectation authored\nwithout a thought about verification is one you will later be unable to settle honestly. When you\ncreate several across several Tasks, say how many you created and who they fall to; a set of gates\nnobody was told about is work assigned by accident. A Deliverable requirement is one typed Expectation, not a second\n`requiredDeliverables` list. Actual Deliverables are recorded only after something exists.\n\nRead what is owed, then settle it — never rewrite the declaration to make it settleable:\n\n```bash\nskrr tasks expectations <task-id> # what is owed, and how far each one got\nskrr tasks expectations assess <task-id> <expectation-id> \\\n --decision met \\\n --reason \"Ran the suite named in the statement; 49/49 pass\" \\\n --evidence code:<commit>\nskrr tasks expectations assess <task-id> --all \\\n --decision met --reason \"...\" # every one still awaiting a judgement\n```\n\n**You may assess any Expectation that takes a judgement.** A `deliverable` Expectation is not one —\nit settles through its linked Resource and evidence, so record the Deliverable rather than\nassessing it. The assessment is recorded as YOURS — every surface shows `met (agent)` against\n`met (person)` — and a human can override it. The control is attribution, not permission, so what\nyou owe is not restraint but evidence: cite what you actually checked, and prefer `--evidence` and\n`--resource-link-id` over prose.\n\nAssess what you VERIFIED. Not what you intended, not what you inferred from having finished the\nwork. “I could not check this” is a real and useful answer — record it `unmet` with the reason\nrather than leaving it silent, because an unassessed Expectation and one you tried and failed to\nverify send the next reader to different places.\n\nA waiver is a judgement about scope — that this is no longer owed — and it stays a person's call:\nif the honest answer is \"this should be waived,\" say so in an Update or Comment and let a person\nrecord it. Do not delete the Expectation to hide that it was owed.\n\nChanging an Expectation's wording advances the Task specification and **revokes every assessment\nalready recorded** — fix the statement before people start settling it, not after.\n\n### Labels — say what PROGRAM this belongs to\n\nA label is cross-cutting classification: which recurring program a Space or Task\nbelongs to (`dogfood`, `incident`, `experiment`, `migration`), not what state it\nis in. Status, priority and assignee are first-class fields and already answer\ntheir own questions — a label that restates one is noise that will drift out of\nsync with the field it copies.\n\nThe vocabulary is DECLARED, not invented. Read it before you use it:\n\n```bash\nskrr labels list\n```\n\nAttach from that list, never a name you made up. A second spelling of an\nexisting label (`dog-food` beside `dogfood`) is worse than no label at all,\nbecause the whole value of one is that filtering on it returns everything:\n\n```bash\nskrr spaces labels add <space-id> --label <label-id>\nskrr tasks labels attach <task-id> --label <label-id>\n```\n\nCreate a label only when the program it names is real and recurring, and say\nwhich entities it applies to — a label created without `--applicable-to space`\ncannot be attached to a Space, which is how a vocabulary comes to exist that\nnothing can use:\n\n```bash\nskrr labels create --name <name> --applicable-to space --applicable-to task\n```\n\nWhen you create a Space or Task for a recurring program, label it as you create\nit (`--label <id>` on `spaces`, `tasks` and `goals create`). The create\nresponse carries a `_labelGuidance` hint naming the applicable vocabulary WITH\nITS IDS when you attached none — read it, and attach in one follow-up call if\none of them fits. It may also carry `suggested` — a proposal, not a decision;\nattach is your call. `skrr tasks labels suggest <task-id>` asks it of a Task.\n\nIf nothing in the vocabulary fits, attach nothing. \"No label\" is a correct\nanswer and a wrong label is not.\n\n### Comments and blockers\n\nUse a Comment only for a question, answer, or review discussion where a reply is useful. For a\nblocker, first record the typed blocker Update, then move the Task to blocked. Add a Comment only if\nsomeone actually needs to respond.\n\n### Creating and placing Tasks\n\nCreate a Task without asking when work needs tracking across meaningful steps, sessions, or\nfollow-up. Avoid duplicates and do not create Tasks for trivial actions that finish immediately.\n\n```bash\nskrr tasks list --q \"<relevant title>\"\nskrr tasks create --title \"<concise requested result>\" --description \"<scope and constraints>\" --json\nskrr tasks move <task-id> --status in_progress\n```\n\nA Space is a durable ownership, collaboration, and authorization boundary. Use an identified Space\nwhen the work clearly belongs there; otherwise create the Task unscoped. Ask before creating a new\nSpace. An Agent works a Task in a Space only as a Space member, or when it is shared with no one\nelse and its owner assigns and starts it; anything else is refused. Do not widen Agent membership\nmerely to force one task assignment.\n\n### Closing a Task out\n\nThe model above says what each record IS. This is the order they go in, and what each step can\nrefuse:\n\n1. **Record what exists** — `skrr tasks deliverable add`, binding it to the Expectation it answers\n with `--expectation <id>` whenever one applies. Evidence that arrives bound is evidence the next\n reader does not have to reconstruct.\n2. **Submit the answer** — `skrr tasks result submit`. This does not close the Task. Read what it\n reports back.\n3. **Read what is still owed** — `skrr tasks expectations <task-id>`.\n4. **Settle what you verified** — `skrr tasks expectations assess`, citing evidence. `--all` covers\n every Expectation still awaiting a judgement.\n5. **Read the Task state again and report THAT** — not what you intended it to be.\n\nTwo things still matter regardless of how complete the work is: an unmet Expectation, and a\n`changes_requested` Review. Neither blocks a close — but both are stamped onto it\n(`resolution.closure`), so closing over them is a recorded choice, not a clean finish. Neither is\na failure state; both are somebody's turn.\n\nStep 5 is the one that goes wrong quietly, and not only here: before reporting a check as passed,\nconfirm you measured what you think you measured. A pipeline's exit status is the LAST command's, so\n`cmd | tail` reports on `tail`. A filter may match something other than what you meant — a path\npattern can match the directory you are working in. When a result will be reported to a person as\nfact, re-run it in the simplest form that can only mean one thing.\n\nAcross a whole Space, `skrr tasks review-queue --space <space-id>` names every outstanding\njudgement at once, with its evidence and the command that settles it.\n\n### Share readable links and close the loop\n\nShare clickable Task, Space, Goal, and Duty URLs, never bare IDs. Use the URL returned by the\nCLI; do not construct one. If needed:\n\n```bash\nskrr tasks show <task-id> --json\nskrr spaces show <space-id> --json\nskrr goals show <goal-id> --json\nskrr duties show <duty-id> --json\n```\n\nBefore your final response, verify every Task you created or touched reflects reality. If work is\nready for independent review, leave it in review. If blocked, record the blocker and required action.\nIf genuinely complete and accepted under the Task's policy, close it. Include the Task URL in the\nfinal handoff. Never claim a write succeeded unless the CLI returned success.\n\n### Coming back later\n\nYou can arrange to return to something. Four shapes, and picking the right one\nmatters more than the wording:\n\n**Reminder** — the user asked to be reminded. Keep their words; a reminder you\nhave rephrased into your own voice is no longer the thing they asked for.\n\n**Watch** — something has an asynchronous tail: CI, a review, an approval, a\nlong job, a metric. If the condition is machine-checkable (an endpoint plus a\npredicate), say so — that costs nothing and is guaranteed to terminate. Only\nwrite a prose check recipe when the check genuinely needs your judgement or your\ntools, because that one burns a full turn every time it runs. Always give it an\nabort condition: a watch that cannot stop is a leak.\n\n**Check-in** — you decided the conversation is worth returning to. This is\npermission AND restraint. Come back when you will have something worth saying —\na result that will have arrived, a decision that will be ripe, a thread you left\ngenuinely open. When you see one, arrange the return yourself and say in one\nline when you will look again. Do not ask whether you should: that hands the\nperson a decision they did not come to make. Do not come back to ask how it is\ngoing. A legacy check-in holds one pending return per conversation. For a sequence\nof checks, use one scheduled lookback plan with 1–10 lifetime steps. When you\nwake, read the original goal, current state and earlier outcomes. Saying\nnothing is a legitimate outcome and often the right one. Stop or cancel\nremaining checks when the work resolves, becomes obsolete or the person cancels.\n\n**Act** — a specific action you already know how to take and the user has already\nagreed to. Not for anything you would still need to ask about.\n\nSettle what you arranged. When you wake and the thing resolved, say so and close\nit out; when it did not, either come back once more with a reason or hand it to\nthe person. Leaving one armed forever is the failure mode here.\n\nFrom a local session, arrange these with `skrr followups` —\n`remind`, `watch`, `checkin`, `act` — and settle them with\n`skrr followups resolve <id> --outcome resolved`.\nFor a bounded lookback plan, use `skrr followups plans create --from-json plan.json`\nand inspect, revise or cancel it with `skrr followups plans` (read `--help`).\nUse 1–10 concrete checks, relative offsets from the completed reply or explicit\nabsolute/local times, and a stop condition. Omit a plan when none is useful.\nA saved plan is not necessarily armed; read the returned receipt before promising a return.\n",
|
|
7
|
+
"hash": "6804d01c68782b97a16920c43f6b9104a8b0c0a512514b25a7622b371055f669"
|
|
8
8
|
}
|
|
9
9
|
}
|
|
@@ -13,7 +13,7 @@ import { Hook } from '@oclif/core';
|
|
|
13
13
|
* `skrr shortcuts list` exists and is correct — only the argument form was
|
|
14
14
|
* wrong; it wants `--space`. But the message says the COMMAND is missing, which
|
|
15
15
|
* is the one conclusion that sends a reader looking in the wrong place. I hit
|
|
16
|
-
* the identical shape on `skrr
|
|
16
|
+
* the identical shape on `skrr duties archive <id>` and briefly believed
|
|
17
17
|
* the subcommand had been removed.
|
|
18
18
|
*
|
|
19
19
|
* It is easy to hit because the CLI has no rule about how a space is passed:
|
|
@@ -20,7 +20,7 @@ const VIRTUAL_USAGE_FLAGS_RE = /^--page=(.+)$/;
|
|
|
20
20
|
* `skrr shortcuts list` exists and is correct — only the argument form was
|
|
21
21
|
* wrong; it wants `--space`. But the message says the COMMAND is missing, which
|
|
22
22
|
* is the one conclusion that sends a reader looking in the wrong place. I hit
|
|
23
|
-
* the identical shape on `skrr
|
|
23
|
+
* the identical shape on `skrr duties archive <id>` and briefly believed
|
|
24
24
|
* the subcommand had been removed.
|
|
25
25
|
*
|
|
26
26
|
* It is easy to hit because the CLI has no rule about how a space is passed:
|
|
@@ -33,6 +33,7 @@ exports.startWithReplay = startWithReplay;
|
|
|
33
33
|
exports.startNotConfirmedHint = startNotConfirmedHint;
|
|
34
34
|
const node_crypto_1 = require("node:crypto");
|
|
35
35
|
const http_error_1 = require("./http-error");
|
|
36
|
+
const IS_NETWORK_FAILURE_RE = /fetch failed|socket hang up/i;
|
|
36
37
|
/** The server accepts 1-128 characters: letters, numbers, dot, underscore, colon, hyphen. */
|
|
37
38
|
const START_KEY_PATTERN = /^[A-Za-z0-9._:-]{1,128}$/;
|
|
38
39
|
exports.START_KEY_RULE = '1-128 characters: letters, numbers, dot, underscore, colon, hyphen';
|
|
@@ -90,7 +91,7 @@ function isNetworkFailure(err) {
|
|
|
90
91
|
: undefined;
|
|
91
92
|
if (typeof causeCode === 'string' && NETWORK_CODES.has(causeCode))
|
|
92
93
|
return true;
|
|
93
|
-
return typeof record.message === 'string' &&
|
|
94
|
+
return typeof record.message === 'string' && IS_NETWORK_FAILURE_RE.test(record.message);
|
|
94
95
|
}
|
|
95
96
|
/**
|
|
96
97
|
* Whether a failed start may be sent again under the same key.
|
|
@@ -2,16 +2,16 @@
|
|
|
2
2
|
* `skrr agenda trigger list <agent>` and the triggers it did not show (OSK-21454).
|
|
3
3
|
*
|
|
4
4
|
* `/api/agents/:id/triggers` is the legacy per-agent facade and lists `scope: 'agent'` rows only. A
|
|
5
|
-
* passive agent (`agents create --initial-always-on off`) still owns system-managed
|
|
6
|
-
* triggers - the daily self-reflection check is `
|
|
7
|
-
* `
|
|
5
|
+
* passive agent (`agents create --initial-always-on off`) still owns system-managed Duty
|
|
6
|
+
* triggers - the daily self-reflection check is `duty-check:obj_agent_reflection_*`, scope
|
|
7
|
+
* `duty_watcher` - so the one command whose name says "list this agent's triggers" answered
|
|
8
8
|
* "No triggers." while `triggers list --ref-entity agent:<id>` and the web Upcoming page listed it.
|
|
9
9
|
*
|
|
10
10
|
* The universal list, filtered by the agent ref, is the truth; this reads it and returns the rows the
|
|
11
11
|
* facade left out, marked so a person can tell the platform's from their own.
|
|
12
12
|
*/
|
|
13
13
|
export type TriggerRow = Record<string, unknown>;
|
|
14
|
-
/** Created and run by the platform for a
|
|
14
|
+
/** Created and run by the platform for a Duty, not authored by the person. */
|
|
15
15
|
export declare function isSystemManaged(row: TriggerRow): boolean;
|
|
16
16
|
/**
|
|
17
17
|
* The universal-list rows the per-agent facade did not return, each tagged `systemManaged`.
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
* `skrr agenda trigger list <agent>` and the triggers it did not show (OSK-21454).
|
|
4
4
|
*
|
|
5
5
|
* `/api/agents/:id/triggers` is the legacy per-agent facade and lists `scope: 'agent'` rows only. A
|
|
6
|
-
* passive agent (`agents create --initial-always-on off`) still owns system-managed
|
|
7
|
-
* triggers - the daily self-reflection check is `
|
|
8
|
-
* `
|
|
6
|
+
* passive agent (`agents create --initial-always-on off`) still owns system-managed Duty
|
|
7
|
+
* triggers - the daily self-reflection check is `duty-check:obj_agent_reflection_*`, scope
|
|
8
|
+
* `duty_watcher` - so the one command whose name says "list this agent's triggers" answered
|
|
9
9
|
* "No triggers." while `triggers list --ref-entity agent:<id>` and the web Upcoming page listed it.
|
|
10
10
|
*
|
|
11
11
|
* The universal list, filtered by the agent ref, is the truth; this reads it and returns the rows the
|
|
@@ -17,7 +17,7 @@ exports.triggersMissingFromAgentList = triggersMissingFromAgentList;
|
|
|
17
17
|
exports.isSuspended = isSuspended;
|
|
18
18
|
exports.sourceLabel = sourceLabel;
|
|
19
19
|
exports.systemManagedLegend = systemManagedLegend;
|
|
20
|
-
const IS_SYSTEM_MANAGED_RE = /^
|
|
20
|
+
const IS_SYSTEM_MANAGED_RE = /^duty-(check|reflect):/;
|
|
21
21
|
function idOf(row) {
|
|
22
22
|
return typeof row.id === 'string' ? row.id : '';
|
|
23
23
|
}
|
|
@@ -25,7 +25,7 @@ function scopeKindOf(row) {
|
|
|
25
25
|
const scope = row.scope;
|
|
26
26
|
return typeof scope?.kind === 'string' ? scope.kind : '';
|
|
27
27
|
}
|
|
28
|
-
/** Created and run by the platform for a
|
|
28
|
+
/** Created and run by the platform for a Duty, not authored by the person. */
|
|
29
29
|
function isSystemManaged(row) {
|
|
30
30
|
return row.producerOwned === true || IS_SYSTEM_MANAGED_RE.test(idOf(row));
|
|
31
31
|
}
|
|
@@ -57,8 +57,8 @@ function sourceLabel(row, unconfirmedTurnCapture) {
|
|
|
57
57
|
/** The legend printed under a table that includes platform-managed rows. */
|
|
58
58
|
function systemManagedLegend(agentId, bin = 'skrr') {
|
|
59
59
|
return [
|
|
60
|
-
'system = created and run by the platform for a
|
|
60
|
+
'system = created and run by the platform for a Duty, not by you (for example the daily self-reflection check every agent is seeded with, passive or not).',
|
|
61
61
|
' "suspended" = the platform is holding it because Always-On is off for this agent.',
|
|
62
|
-
` Find the
|
|
62
|
+
` Find the Duty behind one with: ${bin} duties list --agent ${agentId} --include-system`,
|
|
63
63
|
];
|
|
64
64
|
}
|
|
@@ -12,7 +12,14 @@ import type { AlwaysOnStatus } from '@skrr-ai/data-provider';
|
|
|
12
12
|
* the command's exit code: a script chaining `disable && …` must not carry on
|
|
13
13
|
* with an Agent that is still on.
|
|
14
14
|
*/
|
|
15
|
-
export declare function alwaysOnCommandResult(requested: boolean, status: Pick<AlwaysOnStatus, 'desiredEnabled' | 'generation' | 'operationalState' | 'controlCommand'
|
|
15
|
+
export declare function alwaysOnCommandResult(requested: boolean, status: Pick<AlwaysOnStatus, 'desiredEnabled' | 'generation' | 'operationalState' | 'controlCommand'>,
|
|
16
|
+
/**
|
|
17
|
+
* What the Agent should be SHOWN as (`alwaysOnDisplayState`), when that differs from the
|
|
18
|
+
* server's label. A disable against an older server can come back `off` while a Run is still
|
|
19
|
+
* active; printing that beside a "work remains" note is the mixed message the display state
|
|
20
|
+
* exists to prevent, so the server's own label is then kept visible next to it.
|
|
21
|
+
*/
|
|
22
|
+
displayState?: string): {
|
|
16
23
|
matched: boolean;
|
|
17
24
|
line: string;
|
|
18
25
|
};
|
|
@@ -14,10 +14,19 @@ exports.alwaysOnCommandResult = alwaysOnCommandResult;
|
|
|
14
14
|
* the command's exit code: a script chaining `disable && …` must not carry on
|
|
15
15
|
* with an Agent that is still on.
|
|
16
16
|
*/
|
|
17
|
-
function alwaysOnCommandResult(requested, status
|
|
17
|
+
function alwaysOnCommandResult(requested, status,
|
|
18
|
+
/**
|
|
19
|
+
* What the Agent should be SHOWN as (`alwaysOnDisplayState`), when that differs from the
|
|
20
|
+
* server's label. A disable against an older server can come back `off` while a Run is still
|
|
21
|
+
* active; printing that beside a "work remains" note is the mixed message the display state
|
|
22
|
+
* exists to prevent, so the server's own label is then kept visible next to it.
|
|
23
|
+
*/
|
|
24
|
+
displayState) {
|
|
18
25
|
const word = (on) => (on ? 'on' : 'off');
|
|
19
26
|
const matched = status.desiredEnabled === requested;
|
|
20
|
-
const
|
|
27
|
+
const shown = displayState ?? status.operationalState;
|
|
28
|
+
const now = `generation=${status.generation} operational=${shown}` +
|
|
29
|
+
(shown !== status.operationalState ? ` (server: ${status.operationalState})` : '');
|
|
21
30
|
const command = status.controlCommand;
|
|
22
31
|
if (matched) {
|
|
23
32
|
// Only an explicit `unchanged` is a no-op; an older server sends no receipt,
|
package/dist/lib/auth-failure.js
CHANGED
|
@@ -76,7 +76,7 @@ function describeRefreshRefusal(refusal, opts) {
|
|
|
76
76
|
}
|
|
77
77
|
if (code === 'SESSION_REVOKED') {
|
|
78
78
|
// OSK-16941 — say WHY, in the shared words, and what to do. A latch with no
|
|
79
|
-
// reason (an older server or auth-core)
|
|
79
|
+
// reason (an older server or auth-core) gets a simple signed-out notice.
|
|
80
80
|
const revocationReason = (0, data_provider_1.normalizeSessionRevocationReason)(refusal.revocationReason);
|
|
81
81
|
const brokered = revocationReason === 'machine_removed' ||
|
|
82
82
|
revocationReason === 'logged_out' ||
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
* or lacking one it does — and neither was visible to any test.
|
|
14
14
|
*
|
|
15
15
|
* This module supplies the CLI half. It reads the authoritative
|
|
16
|
-
* `
|
|
16
|
+
* `DUTY_TERMS` declaration from data-provider and checks, against the
|
|
17
17
|
* command SOURCE on disk, that a command exists which can write each term and
|
|
18
18
|
* that it declares the flags the matrix claims.
|
|
19
19
|
*
|
|
@@ -50,10 +50,10 @@ export type CapabilityMatrixReport = {
|
|
|
50
50
|
*/
|
|
51
51
|
export declare function parseDeclaredFlags(source: string): string[];
|
|
52
52
|
/**
|
|
53
|
-
* Verify the CLI covers every declared
|
|
53
|
+
* Verify the CLI covers every declared Duty term.
|
|
54
54
|
*
|
|
55
55
|
* @param rootDir the CLI package root (the directory containing `src/commands`)
|
|
56
56
|
*/
|
|
57
|
-
export declare function
|
|
57
|
+
export declare function auditDutyTermCoverage({ rootDir, }: {
|
|
58
58
|
rootDir: string;
|
|
59
59
|
}): CapabilityMatrixReport;
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* or lacking one it does — and neither was visible to any test.
|
|
15
15
|
*
|
|
16
16
|
* This module supplies the CLI half. It reads the authoritative
|
|
17
|
-
* `
|
|
17
|
+
* `DUTY_TERMS` declaration from data-provider and checks, against the
|
|
18
18
|
* command SOURCE on disk, that a command exists which can write each term and
|
|
19
19
|
* that it declares the flags the matrix claims.
|
|
20
20
|
*
|
|
@@ -62,13 +62,13 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
62
62
|
})();
|
|
63
63
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
64
64
|
exports.parseDeclaredFlags = parseDeclaredFlags;
|
|
65
|
-
exports.
|
|
65
|
+
exports.auditDutyTermCoverage = auditDutyTermCoverage;
|
|
66
66
|
const fs = __importStar(require("node:fs"));
|
|
67
67
|
const path = __importStar(require("node:path"));
|
|
68
68
|
const data_provider_1 = require("@skrr-ai/data-provider");
|
|
69
69
|
const PARSE_DECLARED_FLAGS_RE = /static\s+override\s+flags\s*=\s*\{/;
|
|
70
70
|
const PARSE_DECLARED_FLAGS_RE_2 = /^['"]?([a-zA-Z][\w-]*)['"]?\s*:/;
|
|
71
|
-
/** `
|
|
71
|
+
/** `duties:attach` → `duties/attach.ts` */
|
|
72
72
|
function commandIdToFile(commandsRoot, commandId) {
|
|
73
73
|
return path.join(commandsRoot, `${commandId.split(':').join(path.sep)}.ts`);
|
|
74
74
|
}
|
|
@@ -124,14 +124,14 @@ function parseDeclaredFlags(source) {
|
|
|
124
124
|
return names;
|
|
125
125
|
}
|
|
126
126
|
/**
|
|
127
|
-
* Verify the CLI covers every declared
|
|
127
|
+
* Verify the CLI covers every declared Duty term.
|
|
128
128
|
*
|
|
129
129
|
* @param rootDir the CLI package root (the directory containing `src/commands`)
|
|
130
130
|
*/
|
|
131
|
-
function
|
|
131
|
+
function auditDutyTermCoverage({ rootDir, }) {
|
|
132
132
|
const commandsRoot = path.join(rootDir, 'src', 'commands');
|
|
133
133
|
const gaps = [];
|
|
134
|
-
for (const term of data_provider_1.
|
|
134
|
+
for (const term of data_provider_1.DUTY_TERMS) {
|
|
135
135
|
const file = commandIdToFile(commandsRoot, term.cli.command);
|
|
136
136
|
const rel = path.relative(rootDir, file);
|
|
137
137
|
if (!fs.existsSync(file)) {
|
|
@@ -140,7 +140,7 @@ function auditCommitmentTermCoverage({ rootDir, }) {
|
|
|
140
140
|
term: term.key,
|
|
141
141
|
command: term.cli.command,
|
|
142
142
|
file: rel,
|
|
143
|
-
message: `
|
|
143
|
+
message: `Duty term "${term.key}" (${term.question}) has no CLI command. Expected ${rel}. Either write it or remove the term from DUTY_TERMS.`,
|
|
144
144
|
});
|
|
145
145
|
continue;
|
|
146
146
|
}
|
|
@@ -163,7 +163,7 @@ function auditCommitmentTermCoverage({ rootDir, }) {
|
|
|
163
163
|
command: term.cli.command,
|
|
164
164
|
flag,
|
|
165
165
|
file: rel,
|
|
166
|
-
message: `
|
|
166
|
+
message: `Duty term "${term.key}" claims \`--${flag}\` on \`sky ${term.cli.command.split(':').join(' ')}\`, but that command does not declare it.`,
|
|
167
167
|
});
|
|
168
168
|
}
|
|
169
169
|
}
|
|
@@ -172,7 +172,7 @@ function auditCommitmentTermCoverage({ rootDir, }) {
|
|
|
172
172
|
object: 'capability_matrix_report',
|
|
173
173
|
ok: gaps.length === 0,
|
|
174
174
|
surface: 'cli',
|
|
175
|
-
checked: data_provider_1.
|
|
175
|
+
checked: data_provider_1.DUTY_TERMS.length,
|
|
176
176
|
gaps,
|
|
177
177
|
};
|
|
178
178
|
}
|
|
@@ -287,9 +287,9 @@ const HIGH_SIDE_EFFECT_COMMANDS = [
|
|
|
287
287
|
},
|
|
288
288
|
},
|
|
289
289
|
{
|
|
290
|
-
command: '
|
|
290
|
+
command: 'duties:control:apply',
|
|
291
291
|
effect: 'automation_control',
|
|
292
|
-
owner: '
|
|
292
|
+
owner: 'Duty controls',
|
|
293
293
|
priority: 'P1',
|
|
294
294
|
requirements: {
|
|
295
295
|
operationIdentifier: provided('A required idempotency key identifies the exact reviewed control request.'),
|
|
@@ -300,9 +300,9 @@ const HIGH_SIDE_EFFECT_COMMANDS = [
|
|
|
300
300
|
},
|
|
301
301
|
},
|
|
302
302
|
{
|
|
303
|
-
command: '
|
|
303
|
+
command: 'duties:action-proposals:execute',
|
|
304
304
|
effect: 'automation_control',
|
|
305
|
-
owner: '
|
|
305
|
+
owner: 'Duty controls',
|
|
306
306
|
priority: 'P1',
|
|
307
307
|
requirements: {
|
|
308
308
|
operationIdentifier: provided('The frozen Action Bundle revision and digest form the stable operation id.'),
|
|
@@ -313,9 +313,9 @@ const HIGH_SIDE_EFFECT_COMMANDS = [
|
|
|
313
313
|
},
|
|
314
314
|
},
|
|
315
315
|
{
|
|
316
|
-
command: '
|
|
316
|
+
command: 'duties:execute-remediation',
|
|
317
317
|
effect: 'automation_control',
|
|
318
|
-
owner: '
|
|
318
|
+
owner: 'Duty controls',
|
|
319
319
|
priority: 'P1',
|
|
320
320
|
requirements: {
|
|
321
321
|
operationIdentifier: provided('The immutable remediation action key and proposal revision form the operation id.'),
|
package/dist/lib/command-miss.js
CHANGED
|
@@ -474,7 +474,7 @@ function analyzeCommandMiss(config, id, typedWords) {
|
|
|
474
474
|
// one edit from the `harnesses` topic, but that topic owns no command whose
|
|
475
475
|
// id is close to `harness`, so a command-id-only search suggests nothing.
|
|
476
476
|
//
|
|
477
|
-
// Siblings first: `
|
|
477
|
+
// Siblings first: `duties:archive:<id>` is a long way from every real
|
|
478
478
|
// command id, so a whole-string comparison finds nothing and the reader is
|
|
479
479
|
// told only that they are wrong — when the useful answer is "that topic
|
|
480
480
|
// exists and here is what it does have".
|
|
@@ -30,6 +30,6 @@ export interface CompassRefusalContext {
|
|
|
30
30
|
export declare function compassRefusalCode(body: Record<string, unknown> | null | undefined): CompassRefusalCode | undefined;
|
|
31
31
|
/**
|
|
32
32
|
* The refusal as a sentence, then the command to run next on its own line (the shape
|
|
33
|
-
* `
|
|
33
|
+
* `DUTY_ACTIVATION_BLOCKED` uses: `→`).
|
|
34
34
|
*/
|
|
35
35
|
export declare function describeCompassRefusal(code: CompassRefusalCode, body: Record<string, unknown> | null | undefined, context: CompassRefusalContext, bin: string): string;
|
|
@@ -31,7 +31,7 @@ function versionOf(value) {
|
|
|
31
31
|
}
|
|
32
32
|
/**
|
|
33
33
|
* The refusal as a sentence, then the command to run next on its own line (the shape
|
|
34
|
-
* `
|
|
34
|
+
* `DUTY_ACTIVATION_BLOCKED` uses: `→`).
|
|
35
35
|
*/
|
|
36
36
|
function describeCompassRefusal(code, body, context, bin) {
|
|
37
37
|
const compassId = context.compassId ?? '<compass-id>';
|
package/dist/lib/compasses.d.ts
CHANGED
|
@@ -67,7 +67,7 @@ export interface Compass {
|
|
|
67
67
|
invariantTargets?: CompassInvariantTarget[];
|
|
68
68
|
autonomyDefaults?: Record<string, unknown>;
|
|
69
69
|
communicationDefaults?: Record<string, unknown>;
|
|
70
|
-
|
|
70
|
+
duties?: Array<Record<string, unknown>>;
|
|
71
71
|
/** What `compass tactic` did; present only on that response. */
|
|
72
72
|
tactic?: CompassTacticResult;
|
|
73
73
|
updatedBy?: string;
|
|
@@ -140,7 +140,7 @@ export declare const compassApi: {
|
|
|
140
140
|
trace: (id: string, query: Parameters<typeof withQuery>[1]) => Promise<CompassTrace>;
|
|
141
141
|
revert: (id: string, body: Record<string, unknown>) => Promise<Compass>;
|
|
142
142
|
appendTactic: (id: string, body: Record<string, unknown>) => Promise<Compass>;
|
|
143
|
-
|
|
143
|
+
duties: (id: string, query: Parameters<typeof withQuery>[1]) => Promise<{
|
|
144
144
|
data: Array<Record<string, unknown>>;
|
|
145
145
|
}>;
|
|
146
146
|
};
|
|
@@ -159,12 +159,12 @@ export declare function describeQuietHours(window: unknown): string;
|
|
|
159
159
|
export declare function describeMode(mode: unknown, authoredMode: unknown): string;
|
|
160
160
|
export declare function renderCompass(compass: Compass, log: (line: string) => void): void;
|
|
161
161
|
/**
|
|
162
|
-
* How many
|
|
162
|
+
* How many Duties are bound to a Compass, and whether it governs them. A Duty stays
|
|
163
163
|
* bound to an archived Compass but runs on defaults: the platform reads only an ACTIVE Compass's
|
|
164
164
|
* direction. "Governed by this compass: 1" printed the same words for both, on the Compass side,
|
|
165
|
-
* while the
|
|
165
|
+
* while the Duty's own preflight said it was running on defaults (OSK-21242).
|
|
166
166
|
*/
|
|
167
|
-
export declare function
|
|
167
|
+
export declare function describeBoundDuties(count: number, status: string | undefined): string;
|
|
168
168
|
/**
|
|
169
169
|
* What `compass tactic` says back. Three outcomes, each in its own words: it used to print
|
|
170
170
|
* "Appended" for all of them, with a count that was always 0, and name nothing that rolled off.
|
package/dist/lib/compasses.js
CHANGED
|
@@ -6,7 +6,7 @@ exports.describeSettings = describeSettings;
|
|
|
6
6
|
exports.describeQuietHours = describeQuietHours;
|
|
7
7
|
exports.describeMode = describeMode;
|
|
8
8
|
exports.renderCompass = renderCompass;
|
|
9
|
-
exports.
|
|
9
|
+
exports.describeBoundDuties = describeBoundDuties;
|
|
10
10
|
exports.renderTacticResult = renderTacticResult;
|
|
11
11
|
exports.renderEffectivePolicy = renderEffectivePolicy;
|
|
12
12
|
exports.renderRevisionList = renderRevisionList;
|
|
@@ -22,8 +22,8 @@ const data_provider_1 = require("@skrr-ai/data-provider");
|
|
|
22
22
|
* communication defaults. It is the top of the three-layer model:
|
|
23
23
|
*
|
|
24
24
|
* Compass what is good, what may never be traded away
|
|
25
|
-
* Northstar which
|
|
26
|
-
*
|
|
25
|
+
* Northstar which duties should exist, and their priority/budget
|
|
26
|
+
* Duty one business state, held by its own check loop
|
|
27
27
|
*
|
|
28
28
|
* Two properties shape every command here:
|
|
29
29
|
*
|
|
@@ -51,7 +51,7 @@ exports.compassApi = {
|
|
|
51
51
|
trace: (id, query) => data_provider_2.request.get((0, triggers_1.withQuery)(`${base(id)}/trace`, query)),
|
|
52
52
|
revert: (id, body) => data_provider_2.request.post(`${base(id)}/revert`, body),
|
|
53
53
|
appendTactic: (id, body) => data_provider_2.request.post(`${base(id)}/tactics`, body),
|
|
54
|
-
|
|
54
|
+
duties: (id, query) => data_provider_2.request.get((0, triggers_1.withQuery)(`${base(id)}/duties`, query)),
|
|
55
55
|
};
|
|
56
56
|
const OVERFLOW_FIELD_LABEL = {
|
|
57
57
|
maintainedState: 'keeps-true entries',
|
|
@@ -220,22 +220,22 @@ function renderCompass(compass, log) {
|
|
|
220
220
|
}
|
|
221
221
|
}
|
|
222
222
|
}
|
|
223
|
-
const
|
|
224
|
-
if (
|
|
223
|
+
const duties = compass.duties ?? [];
|
|
224
|
+
if (duties.length) {
|
|
225
225
|
log('');
|
|
226
|
-
log(
|
|
226
|
+
log(describeBoundDuties(duties.length, compass.status));
|
|
227
227
|
}
|
|
228
228
|
}
|
|
229
229
|
/**
|
|
230
|
-
* How many
|
|
230
|
+
* How many Duties are bound to a Compass, and whether it governs them. A Duty stays
|
|
231
231
|
* bound to an archived Compass but runs on defaults: the platform reads only an ACTIVE Compass's
|
|
232
232
|
* direction. "Governed by this compass: 1" printed the same words for both, on the Compass side,
|
|
233
|
-
* while the
|
|
233
|
+
* while the Duty's own preflight said it was running on defaults (OSK-21242).
|
|
234
234
|
*/
|
|
235
|
-
function
|
|
235
|
+
function describeBoundDuties(count, status) {
|
|
236
236
|
return status === 'archived'
|
|
237
|
-
? `
|
|
238
|
-
: `
|
|
237
|
+
? `Duties bound to this compass: ${count} (not governed while the compass is archived)`
|
|
238
|
+
: `Duties governed by this compass: ${count}`;
|
|
239
239
|
}
|
|
240
240
|
/**
|
|
241
241
|
* What `compass tactic` says back. Three outcomes, each in its own words: it used to print
|
|
@@ -280,7 +280,7 @@ function renderEffectivePolicy(policy, log) {
|
|
|
280
280
|
// The Gateway reads one Compass per agent for the agent's own messages; this one may not be it.
|
|
281
281
|
const gateway = record(policy.messageGateway);
|
|
282
282
|
if (gateway.readsThisCompass === false && typeof gateway.canonicalCompassId === 'string') {
|
|
283
|
-
log(`Agent messages: the Gateway reads ${gateway.canonicalCompassId} for this agent's communication defaults. From this Compass only a stricter mode counts for those messages (the strictest mode across active Compasses governs); its other defaults apply to
|
|
283
|
+
log(`Agent messages: the Gateway reads ${gateway.canonicalCompassId} for this agent's communication defaults. From this Compass only a stricter mode counts for those messages (the strictest mode across active Compasses governs); its other defaults apply to Duties bound to it.`);
|
|
284
284
|
}
|
|
285
285
|
const autonomy = record(policy.autonomy);
|
|
286
286
|
log('Autonomy');
|
|
@@ -355,7 +355,7 @@ function renderCompassTrace(trace, log) {
|
|
|
355
355
|
type: event.type.replace(RENDER_COMPASS_TRACE_RE, ' '),
|
|
356
356
|
status: event.status ?? '—',
|
|
357
357
|
event: event.summary ?? '—',
|
|
358
|
-
|
|
358
|
+
duty: String(event.references?.dutyId ?? '—'),
|
|
359
359
|
version: event.references?.compassVersion
|
|
360
360
|
? `v${String(event.references.compassVersion)}`
|
|
361
361
|
: event.references?.compassRevision
|
|
@@ -366,7 +366,7 @@ function renderCompassTrace(trace, log) {
|
|
|
366
366
|
{ key: 'type', header: 'TYPE', maxWidth: 25 },
|
|
367
367
|
{ key: 'status', header: 'STATUS', maxWidth: 16 },
|
|
368
368
|
{ key: 'event', header: 'EVENT', maxWidth: 52 },
|
|
369
|
-
{ key: '
|
|
369
|
+
{ key: 'duty', header: 'DUTY', maxWidth: 24 },
|
|
370
370
|
{ key: 'version', header: 'COMPASS', maxWidth: 10 },
|
|
371
371
|
], log);
|
|
372
372
|
if (trace.has_more)
|
|
@@ -61,6 +61,7 @@ const machine_spend_cap_1 = require("./machine-spend-cap");
|
|
|
61
61
|
const web_url_1 = require("./web-url");
|
|
62
62
|
const edge_error_page_1 = require("./edge-error-page");
|
|
63
63
|
const harnesses_1 = require("./harnesses");
|
|
64
|
+
const FORMAT_DEDICATED_RUNTIME_API_ERROR_RE = /(?:skrr )?Hosted Machine/g;
|
|
64
65
|
const VERSION_PARTS_RE = /^v?(\d+)\.(\d+)\.(\d+)/;
|
|
65
66
|
const IS_DEDICATED_REPOSITORY_REF_RE = /^(?:https?:\/\/)?(?:github\.com\/)?[A-Za-z0-9_.-]+\/[A-Za-z0-9_.-]+?(?:\.git)?$/i;
|
|
66
67
|
const FORMAT_INVOICE_AMOUNT_RE = /^[A-Z]{3}$/;
|
|
@@ -1507,7 +1508,7 @@ function formatDedicatedRuntimeApiError(err, context = {}) {
|
|
|
1507
1508
|
// replicas and product-neutral action errors may still carry the Hosted
|
|
1508
1509
|
// Machine noun even though the caller named a Dedicated Runtime. Do not
|
|
1509
1510
|
// repeat that contradictory product name while a mixed deployment rolls.
|
|
1510
|
-
const sentence = (parsed.message || parsed.error || parsed.code)?.replace(
|
|
1511
|
+
const sentence = (parsed.message || parsed.error || parsed.code)?.replace(FORMAT_DEDICATED_RUNTIME_API_ERROR_RE, 'Dedicated Runtime');
|
|
1511
1512
|
return sentence ? `${sentence}${describeRefusalReasons(err, context)}` : null;
|
|
1512
1513
|
}
|
|
1513
1514
|
catch {
|
|
@@ -78,6 +78,8 @@ function describePolicyWords(policy, idleAfterMinutes, autoStopMode) {
|
|
|
78
78
|
}
|
|
79
79
|
if (policy === 'manual')
|
|
80
80
|
return 'manual (stops and starts only when you do)';
|
|
81
|
+
if (policy === 'always_on')
|
|
82
|
+
return 'always_on (never stops by itself; after you stop it, only you start it again)';
|
|
81
83
|
return policy;
|
|
82
84
|
}
|
|
83
85
|
function describePowerPolicy(power, autoStopMode) {
|