@skrr-ai/cli 0.1.198 → 0.1.201

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.
Files changed (59) hide show
  1. package/dist/commands/agents/always-on/recovery-close.d.ts +3 -4
  2. package/dist/commands/agents/always-on/recovery-close.js +5 -5
  3. package/dist/commands/agents/always-on/recovery-review.d.ts +1 -1
  4. package/dist/commands/agents/always-on/recovery-review.js +4 -3
  5. package/dist/commands/agents/create.d.ts +4 -2
  6. package/dist/commands/agents/create.js +29 -4
  7. package/dist/commands/duties/check-now.d.ts +1 -0
  8. package/dist/commands/duties/check-now.js +17 -1
  9. package/dist/commands/duties/create.js +74 -7
  10. package/dist/commands/duties/observations.d.ts +1 -0
  11. package/dist/commands/duties/observations.js +12 -3
  12. package/dist/commands/duties/operating-review.js +34 -2
  13. package/dist/commands/duties/pack/plan.d.ts +1 -0
  14. package/dist/commands/duties/pack/plan.js +30 -0
  15. package/dist/commands/duties/plan.d.ts +1 -0
  16. package/dist/commands/duties/plan.js +24 -0
  17. package/dist/commands/duties/preflight.d.ts +3 -3
  18. package/dist/commands/duties/preflight.js +36 -12
  19. package/dist/commands/duties/receipt.d.ts +1 -0
  20. package/dist/commands/duties/receipt.js +35 -11
  21. package/dist/commands/duties/roster.js +29 -6
  22. package/dist/commands/duties/status.js +19 -11
  23. package/dist/commands/duties/update.js +1 -1
  24. package/dist/commands/goals/create.js +1 -1
  25. package/dist/commands/goals/key-results/create.js +1 -1
  26. package/dist/commands/machines/computer-adoption.js +1 -1
  27. package/dist/commands/machines/dedicated/audit.js +1 -1
  28. package/dist/commands/machines/dedicated/catalog.js +1 -1
  29. package/dist/commands/machines/dedicated/current.js +1 -1
  30. package/dist/commands/machines/dedicated/git-status.js +1 -1
  31. package/dist/commands/machines/dedicated/health-check.js +1 -1
  32. package/dist/commands/machines/dedicated/logs.js +1 -1
  33. package/dist/commands/machines/dedicated/price-book.js +1 -1
  34. package/dist/commands/machines/dedicated/sign-in-status.js +1 -1
  35. package/dist/commands/machines/dedicated/stat.js +1 -1
  36. package/dist/commands/machines/services/ls.js +1 -1
  37. package/dist/commands/machines/shared.js +1 -1
  38. package/dist/commands/machines/shares.js +1 -1
  39. package/dist/commands/tasks/result/submit.d.ts +1 -0
  40. package/dist/commands/tasks/result/submit.js +2 -0
  41. package/dist/commands/tasks/start-receipt.js +5 -0
  42. package/dist/commands/tasks/start.js +40 -1
  43. package/dist/commands/triggers/fire-detail.js +7 -0
  44. package/dist/generated/agent-guides.json +36 -36
  45. package/dist/lib/daemon-setup.js +1 -1
  46. package/dist/lib/duties.d.ts +7 -5
  47. package/dist/lib/duties.js +32 -19
  48. package/dist/lib/duty-loop-status.d.ts +2 -0
  49. package/dist/lib/duty-loop-status.js +26 -1
  50. package/dist/lib/duty-product.js +52 -3
  51. package/dist/lib/tasks.js +11 -3
  52. package/dist/lib/usage-discovery.js +2 -2
  53. package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/dutyExecutionContract.d.ts +10 -0
  54. package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/dutyExecutionContract.js +15 -2
  55. package/dist/node_modules/@skrr-ai/auth-core/dist/esm/dutyExecutionContract.d.ts +10 -0
  56. package/dist/node_modules/@skrr-ai/auth-core/dist/esm/dutyExecutionContract.js +18 -0
  57. package/dist/node_modules/@skrr-ai/data-provider/index.js +10381 -10365
  58. package/oclif.manifest.json +47 -8
  59. package/package.json +6 -3
@@ -386,7 +386,7 @@
386
386
  "version": 5,
387
387
  "routed": true,
388
388
  "aliases": [],
389
- "tokens": 1153,
389
+ "tokens": 1134,
390
390
  "sections": [
391
391
  {
392
392
  "id": "model",
@@ -417,8 +417,8 @@
417
417
  {
418
418
  "id": "authoring",
419
419
  "title": "Write a Duty: sources, keys, cadence and budgets",
420
- "readWhen": "you draft or change a Duty's contract: what it watches, how often, where its work goes, what it may spend",
421
- "tokens": 1176,
420
+ "readWhen": "you draft or change a Duty",
421
+ "tokens": 1087,
422
422
  "aliases": [],
423
423
  "explains": [
424
424
  "DUTY_MODE_RETIRED",
@@ -725,7 +725,7 @@
725
725
  ]
726
726
  }
727
727
  ],
728
- "hash": "991a5c2dd127fb3ac5fd0923eff6dbab9637fcf6832627ec0d58b50e5b1e5eda",
728
+ "hash": "ba89076924ba20710b5e70709fc7d503e62b3a96bf744a71ea888169e0c10fc0",
729
729
  "tokens": 557
730
730
  },
731
731
  "routedIndex": {
@@ -1115,7 +1115,7 @@
1115
1115
  "version": 5,
1116
1116
  "routed": true,
1117
1117
  "aliases": [],
1118
- "tokens": 1153,
1118
+ "tokens": 1134,
1119
1119
  "sections": [
1120
1120
  {
1121
1121
  "id": "model",
@@ -1146,8 +1146,8 @@
1146
1146
  {
1147
1147
  "id": "authoring",
1148
1148
  "title": "Write a Duty: sources, keys, cadence and budgets",
1149
- "readWhen": "you draft or change a Duty's contract: what it watches, how often, where its work goes, what it may spend",
1150
- "tokens": 1176,
1149
+ "readWhen": "you draft or change a Duty",
1150
+ "tokens": 1087,
1151
1151
  "aliases": [],
1152
1152
  "explains": [
1153
1153
  "DUTY_MODE_RETIRED",
@@ -1385,7 +1385,7 @@
1385
1385
  ]
1386
1386
  }
1387
1387
  ],
1388
- "hash": "57110be667c5b948121bb29a19e4f106df0828f1aa204ed5886fe39bebf6fdf7",
1388
+ "hash": "fcb0a35cacda8fbf1dd996e40257b1ff7680464c8cf09d2a0851bdee16844bea",
1389
1389
  "tokens": 506
1390
1390
  },
1391
1391
  "cards": {
@@ -1787,8 +1787,8 @@
1787
1787
  "routed": true,
1788
1788
  "aliases": [],
1789
1789
  "body": "## Concept model\n\n| Noun | Question it answers |\n| --- | --- |\n| **Compass** | What does good look like for this Agent, and what may it never trade away? |\n| **Northstar** | Which Duties should exist, at what priority and on what budget? |\n| **Duty** | Which outcome does this Agent keep true, and how does it keep checking? |\n| **Check** | What did one wake of a Duty see, decide and do? |\n\nA Duty is not a unit of work. A **Task** is one unit of work and a **Goal** is a dated\noutcome with key results; a Duty watches both and may create Tasks, and is neither.\n\n## Decide\n\nFive mechanisms make something happen later, and the noun alone does not pick one:\n\n| Mechanism | What it is for | The signal that picks it |\n| --- | --- | --- |\n| **Follow-up** | Coming back to one thing, once or a bounded few times: a reminder, a watch, a check-in, an agreed action | The ask ends: \"look tomorrow\", \"tell me when CI is green\" |\n| **Trigger** | Running the Agent with a set prompt on a schedule, an event, once, or on demand | The person names when, and every run does the same work |\n| **Heartbeat** | Checking in on a conversation, group chat or Space at a frequency that backs off while unread | The person wants regular contact, not an outcome held |\n| **Duty** | Keeping an outcome true: watched sources, a cadence and a loop that decides when to act | \"Keep X true\", \"watch this metric\": no end, and stale evidence matters |\n| **Workflow** | Running a durable graph of Tasks in order | Repeatable work whose steps depend on each other |\n\nA one-off \"look at it tomorrow\" is a follow-up, never a Duty. Standing observation is a\nDuty with a freshness contract, not a recurring trigger or a task board left running.\n\n## Workflow\n\n### Start a Duty\n\n1. Read the Agent's Duties first, and change one rather than add a near-duplicate.\n2. Create it and turn it on in one call: the outcome, what it watches, how often it checks, where\n its work goes. Turning it on runs Preflight; a refusal keeps the draft and reports the code,\n reason and fix.\n3. Leave it a draft only when the person asked to see it first.\n4. Read it back, and tell the person what it watches, how often, and whether it is on.\n\n## Authority\n\n| Actor | May do | Only a person may do |\n| --- | --- | --- |\n| Agent | Read the Duties of an Agent it can view; create one, change it and turn it on; request a check; pause one; decide whether a finding is worth telling the owner | Lift a stop a person made; set or clear a concurrency limit; choose the Task review policy; approve an action proposal or a cadence change; configure a Northstar's governance or decide its intents |\n| Person | Everything in both columns | — |\n\nA Duty grants no permission: its runs work under the Agent's own. A Check never writes an\nowner-facing message, and a Compass never creates, rewrites, pauses or archives a Duty. The\nserver cannot always tell an Agent from the person whose login it holds, so an accepted call is\nnot permission: the right-hand column stays a person's.\n\n## Live state\n\n- `skrr duties list --agent <agent-id>` — an Agent's Duties, with status and assessment.\n- `skrr duties show <duty-id>` — the contract, its next check and the last one.\n- `skrr duties roster --agent <agent-id>` — each loop: whether it is armed, its next wake, runs today.\n\n## Related guides\n\n- `tasks` — the Tasks a Duty creates or watches.\n- `spaces` — Goals, and Workflows: durable graphs of Tasks.\n- `agents` — the Agent a Duty belongs to, and where its runs execute.\n- `communication` — whether, what and how to tell the owner.",
1790
- "hash": "ad346d41a19d34f4fd62be482ff50673fa51287fe414e953cc898303cb1868ab",
1791
- "tokens": 1153,
1790
+ "hash": "af071046c7e0be5ac949b5e630eb6c84b73285cbd8b4b1046adf5f13d746a751",
1791
+ "tokens": 1134,
1792
1792
  "sections": [
1793
1793
  {
1794
1794
  "id": "model",
@@ -1819,8 +1819,8 @@
1819
1819
  {
1820
1820
  "id": "authoring",
1821
1821
  "title": "Write a Duty: sources, keys, cadence and budgets",
1822
- "readWhen": "you draft or change a Duty's contract: what it watches, how often, where its work goes, what it may spend",
1823
- "tokens": 1176,
1822
+ "readWhen": "you draft or change a Duty",
1823
+ "tokens": 1087,
1824
1824
  "aliases": [],
1825
1825
  "explains": [
1826
1826
  "DUTY_MODE_RETIRED",
@@ -5973,8 +5973,8 @@
5973
5973
  {
5974
5974
  "id": "authoring",
5975
5975
  "title": "Write a Duty: sources, keys, cadence and budgets",
5976
- "readWhen": "you draft or change a Duty's contract: what it watches, how often, where its work goes, what it may spend",
5977
- "tokens": 1176,
5976
+ "readWhen": "you draft or change a Duty",
5977
+ "tokens": 1087,
5978
5978
  "aliases": [],
5979
5979
  "explains": [
5980
5980
  "DUTY_MODE_RETIRED",
@@ -6089,8 +6089,8 @@
6089
6089
  {
6090
6090
  "id": "authoring",
6091
6091
  "title": "Write a Duty: sources, keys, cadence and budgets",
6092
- "readWhen": "you draft or change a Duty's contract: what it watches, how often, where its work goes, what it may spend",
6093
- "tokens": 1176,
6092
+ "readWhen": "you draft or change a Duty",
6093
+ "tokens": 1087,
6094
6094
  "aliases": [],
6095
6095
  "explains": [
6096
6096
  "DUTY_MODE_RETIRED",
@@ -6207,8 +6207,8 @@
6207
6207
  {
6208
6208
  "id": "authoring",
6209
6209
  "title": "Write a Duty: sources, keys, cadence and budgets",
6210
- "readWhen": "you draft or change a Duty's contract: what it watches, how often, where its work goes, what it may spend",
6211
- "tokens": 1176,
6210
+ "readWhen": "you draft or change a Duty",
6211
+ "tokens": 1087,
6212
6212
  "aliases": [],
6213
6213
  "explains": [
6214
6214
  "DUTY_MODE_RETIRED",
@@ -6286,7 +6286,7 @@
6286
6286
  "id": "duties",
6287
6287
  "section": "authoring",
6288
6288
  "title": "Write a Duty: sources, keys, cadence and budgets",
6289
- "readWhen": "you draft or change a Duty's contract: what it watches, how often, where its work goes, what it may spend",
6289
+ "readWhen": "you draft or change a Duty",
6290
6290
  "version": 5,
6291
6291
  "aliases": [],
6292
6292
  "explains": [
@@ -6296,9 +6296,9 @@
6296
6296
  "DUTY_CONCURRENCY_REQUIRES_OWNER_DECISION",
6297
6297
  "DUTY_TASK_REVIEW_POLICY_OWNER_REQUIRED"
6298
6298
  ],
6299
- "body": "Read this when you draft or change a Duty's contract: what it watches, how often, where its work goes, what it may spend.\n\nA Duty starts as a draft; create and turn it on in one call unless the person asked to\nreview it first. Activation runs Preflight — a refusal keeps the draft and reports the code,\nreason and fix. An active contract spends compute on every check, so make it say exactly what\nwill be watched.\n\n- **Outcome and criteria**: the state to hold true, and how you will know it holds.\n- **Watched sources**: what each check reads. A source the platform reads itself (Tasks, a Goal,\n GitHub, metric snapshots it records) needs only its name and scope. A value only a run can read,\n such as a dashboard or an outside CI rate, is an `agent_run` key you declare.\n- **Declared keys**: the operator declares the keys, and the agent fills them. A run may report any\n key, but only a declared one can move the loop, and only as its `changeRule` says: `any` change,\n or `numeric_delta` with `minDelta`, `minRatio`, `direction` and `absoluteFloor`.\n- **Cadence**: `interval` (`1m` to `365d`), `daily` at `HH:MM` times in a timezone,\n `event_plus_interval`, or `manual`. Only `event_plus_interval` reads events, and an event is an\n accelerator, not a delivery receipt: a missed one is not replayed, and each interval re-checks\n current state, while it is running. Silence means no event was seen, not that none happened. A\n selection that cannot wake it is set aside and named by the write.\n- **Events (CLI)**: `--event-driven` sets `event_plus_interval`; `skrr triggers event-catalog --json`\n shows `dutyWake`. Task wakes need `--goal <goal-id>` or exactly one `config.taskId`, `config.goalId`,\n or `config.keyResultId` on a `tasks` source in `--from-json`; omit `--watch` with JSON sources.\n- **Delivery**: where its work goes. `report_only` reports and changes nothing.\n- **Budgets**: `policy.executionBudget` caps runs, sensing runs and cost per day. `0` blocks; `null`\n is no limit.\n- **Event sources**: `policy.executionBudget.allowedEventSources` limits which sources may wake it.\n An empty or missing list allows every source; name sources to restrict it.\n- **Interruptions**: `policy.maxUserNudgesPerDay` caps messages to the person: `0` mutes, `null` is\n no limit. `minUserNudgeIntervalMs` is the least gap between two.\n- **Quiet hours**: `policy.quietHours` is `{enabled, start, end, timezone}`. Times are 24-hour\n `HH:MM`; `enabled: true` needs both, and they must differ. A window may cross midnight, and `end`\n is outside it. `timezone` is an IANA name; omitted means UTC, not the person's zone.\n\n## Example\n\nA daily, report-only watch on a deploy failure rate:\n\nSave this as `duty.json`:\n\n```json\n{\n \"agentId\": \"<agent-id>\",\n \"title\": \"Deploys\",\n \"status\": \"draft\",\n \"target\": { \"outcome\": \"Report a rise in deploy failures\" },\n \"cadence\": { \"mode\": \"daily\", \"times\": [\"09:00\"], \"timezone\": \"America/New_York\" },\n \"delivery\": { \"mode\": \"report_only\" },\n \"watchedSources\": [{\n \"source\": \"agent_run\",\n \"config\": { \"keys\": [{\n \"key\": \"deploys.failure_rate_7d\",\n \"changeRule\": { \"mode\": \"numeric_delta\", \"minDelta\": 0.02, \"direction\": \"up\" }\n }] }\n }],\n \"policy\": { \"executionBudget\": { \"maxRunsPerDay\": 2, \"maxObservationRunsPerDay\": 2 } }\n}\n```\n\n```bash\nskrr duties create --from-json duty.json --activate --json\n```\n\n`create` warns about inert fields, such as an `agent_run` source with no keys. `--activate` runs\nPreflight; a refusal keeps the draft. Drop `--activate` when the person wants review first;\n`skrr duties resume` turns it on later and `skrr duties update` changes it.\n\n## Refusals\n\n| Code | Cause | Fix |\n| --- | --- | --- |\n| `DUTY_MODE_RETIRED` | The body carries `mode`; Duty modes are retired. | Leave it out: runs work under the Agent's own permissions. |\n| `DUTY_POLICY_RETIRED` | The body carries a retired permission-tier policy field. | Remove the field the refusal names. |\n| `DUTY_DELIVERY_REQUIRED` | A coding Duty names no delivery. | Choose where its work goes. |\n| `DUTY_CONCURRENCY_REQUIRES_OWNER_DECISION` | An Agent set or cleared a finite concurrency limit. | Recommend the limit; the person sets it. |\n| `DUTY_TASK_REVIEW_POLICY_OWNER_REQUIRED` | Only the owner chooses the Task review policy. | Leave it out and ask the owner. |",
6300
- "hash": "e6749e26022388affd88b87f16667690b6a76d826ec98d4528bb863d4f6ac5fc",
6301
- "tokens": 1176,
6299
+ "body": "Read this when you draft or change a Duty.\n\nCreate and activate a Duty together unless the person asks to review the draft first.\nActivation runs Preflight. A refusal keeps the draft and returns the reason and fix.\n\n- **Outcome and criteria**: the state to hold true, and how you will know it holds.\n- **Watched sources**: name and scope sources the platform reads, such as Tasks or GitHub.\n Declare `agent_run` keys for readings the Agent takes itself. Declared keys move the loop\n under their `changeRule`: `any`, or `numeric_delta` with `minDelta`, `minRatio`, `direction` and `absoluteFloor`.\n- **Cadence**: `interval` (`1m` to `365d`), `daily` at `HH:MM` times in a timezone,\n `event_plus_interval`, or `manual`. Events can wake `event_plus_interval` early. Its interval\n rechecks current state without replaying missed events. The write names sources it cannot arm.\n- **Events (CLI)**: `--event-driven` sets `event_plus_interval`; `skrr triggers event-catalog --json`\n shows `dutyWake`. Task wakes need `--goal <goal-id>` or exactly one `config.taskId`, `config.goalId`,\n or `config.keyResultId` on a `tasks` source in `--from-json`; omit `--watch` with JSON sources.\n- **Delivery**: `report_only` records findings. In the notification instructions, name the\n changes worth a notification and the routine or repeated evidence to keep quiet.\n- **Budgets**: `policy.executionBudget` caps daily runs, sensing runs and cost. `0` blocks and\n `null` is unlimited. `allowedEventSources` restricts wake sources when the list has entries.\n- **Peer review**. The Duty owner authorizes same-Agent targets in\n `agent_run.config.peerDutyVerification`. Use an object for one target or an array for up to eight,\n each with a distinct `targetDutyId`, an `observationKey` declared by that target and a scalar\n `equals` value. The governor chooses one authorized target per Run. Add `wakeOnCompletion: true`\n on a target to wake the governor on qualifying evidence. `reviewOnMismatch: true` also reviews a\n different authorized value of the same type. Receipts link the changed version, exact Run and\n observation.\n- **Interruptions**: `policy.maxUserNudgesPerDay` caps messages to the person: `0` mutes, `null` is\n no limit. `minUserNudgeIntervalMs` is the least gap between two.\n- **Quiet hours**: enabled `policy.quietHours` needs distinct `start` and `end` times (`HH:MM`).\n The window can cross midnight and excludes `end`. Use an IANA `timezone`. Default UTC.\n\n## Example\n\nA daily, report-only watch on a deploy failure rate:\n\nSave this as `duty.json`:\n\n```json\n{\n \"agentId\": \"<agent-id>\",\n \"title\": \"Deploys\",\n \"status\": \"draft\",\n \"target\": { \"outcome\": \"Report a rise in deploy failures\" },\n \"cadence\": { \"mode\": \"daily\", \"times\": [\"09:00\"], \"timezone\": \"America/New_York\" },\n \"delivery\": { \"mode\": \"report_only\" },\n \"watchedSources\": [{\n \"source\": \"agent_run\",\n \"config\": { \"keys\": [{\n \"key\": \"deploys.failure_rate_7d\",\n \"changeRule\": { \"mode\": \"numeric_delta\", \"minDelta\": 0.02, \"direction\": \"up\" }\n }] }\n }],\n \"policy\": { \"executionBudget\": { \"maxRunsPerDay\": 2, \"maxObservationRunsPerDay\": 2 } }\n}\n```\n\n```bash\nskrr duties create --from-json duty.json --activate --json\n```\n\nThe CLI warns about inert fields, including `agent_run` without keys. Omit `--activate` for\nreview. Use `skrr duties update` to edit and `skrr duties resume` to activate later.\n\n## Refusals\n\n| Code | Cause | Fix |\n| --- | --- | --- |\n| `DUTY_MODE_RETIRED` | The body carries `mode`; Duty modes are retired. | Leave it out: runs work under the Agent's own permissions. |\n| `DUTY_POLICY_RETIRED` | The body carries a retired permission-tier policy field. | Remove the field the refusal names. |\n| `DUTY_DELIVERY_REQUIRED` | A coding Duty names no delivery. | Choose where its work goes. |\n| `DUTY_CONCURRENCY_REQUIRES_OWNER_DECISION` | An Agent set or cleared a finite concurrency limit. | Recommend the limit; the person sets it. |\n| `DUTY_TASK_REVIEW_POLICY_OWNER_REQUIRED` | Only the owner chooses the Task review policy. | Leave it out and ask the owner. |",
6300
+ "hash": "f056a815ab9cdbd38bdc209d7be5978025d8a6849daee32aebf9c827d71c3647",
6301
+ "tokens": 1087,
6302
6302
  "sections": [
6303
6303
  {
6304
6304
  "id": "model",
@@ -6329,8 +6329,8 @@
6329
6329
  {
6330
6330
  "id": "authoring",
6331
6331
  "title": "Write a Duty: sources, keys, cadence and budgets",
6332
- "readWhen": "you draft or change a Duty's contract: what it watches, how often, where its work goes, what it may spend",
6333
- "tokens": 1176,
6332
+ "readWhen": "you draft or change a Duty",
6333
+ "tokens": 1087,
6334
6334
  "aliases": [],
6335
6335
  "explains": [
6336
6336
  "DUTY_MODE_RETIRED",
@@ -6445,8 +6445,8 @@
6445
6445
  {
6446
6446
  "id": "authoring",
6447
6447
  "title": "Write a Duty: sources, keys, cadence and budgets",
6448
- "readWhen": "you draft or change a Duty's contract: what it watches, how often, where its work goes, what it may spend",
6449
- "tokens": 1176,
6448
+ "readWhen": "you draft or change a Duty",
6449
+ "tokens": 1087,
6450
6450
  "aliases": [],
6451
6451
  "explains": [
6452
6452
  "DUTY_MODE_RETIRED",
@@ -6561,8 +6561,8 @@
6561
6561
  {
6562
6562
  "id": "authoring",
6563
6563
  "title": "Write a Duty: sources, keys, cadence and budgets",
6564
- "readWhen": "you draft or change a Duty's contract: what it watches, how often, where its work goes, what it may spend",
6565
- "tokens": 1176,
6564
+ "readWhen": "you draft or change a Duty",
6565
+ "tokens": 1087,
6566
6566
  "aliases": [],
6567
6567
  "explains": [
6568
6568
  "DUTY_MODE_RETIRED",
@@ -6683,8 +6683,8 @@
6683
6683
  {
6684
6684
  "id": "authoring",
6685
6685
  "title": "Write a Duty: sources, keys, cadence and budgets",
6686
- "readWhen": "you draft or change a Duty's contract: what it watches, how often, where its work goes, what it may spend",
6687
- "tokens": 1176,
6686
+ "readWhen": "you draft or change a Duty",
6687
+ "tokens": 1087,
6688
6688
  "aliases": [],
6689
6689
  "explains": [
6690
6690
  "DUTY_MODE_RETIRED",
@@ -6799,8 +6799,8 @@
6799
6799
  {
6800
6800
  "id": "authoring",
6801
6801
  "title": "Write a Duty: sources, keys, cadence and budgets",
6802
- "readWhen": "you draft or change a Duty's contract: what it watches, how often, where its work goes, what it may spend",
6803
- "tokens": 1176,
6802
+ "readWhen": "you draft or change a Duty",
6803
+ "tokens": 1087,
6804
6804
  "aliases": [],
6805
6805
  "explains": [
6806
6806
  "DUTY_MODE_RETIRED",
@@ -6919,8 +6919,8 @@
6919
6919
  {
6920
6920
  "id": "authoring",
6921
6921
  "title": "Write a Duty: sources, keys, cadence and budgets",
6922
- "readWhen": "you draft or change a Duty's contract: what it watches, how often, where its work goes, what it may spend",
6923
- "tokens": 1176,
6922
+ "readWhen": "you draft or change a Duty",
6923
+ "tokens": 1087,
6924
6924
  "aliases": [],
6925
6925
  "explains": [
6926
6926
  "DUTY_MODE_RETIRED",
@@ -7037,8 +7037,8 @@
7037
7037
  {
7038
7038
  "id": "authoring",
7039
7039
  "title": "Write a Duty: sources, keys, cadence and budgets",
7040
- "readWhen": "you draft or change a Duty's contract: what it watches, how often, where its work goes, what it may spend",
7041
- "tokens": 1176,
7040
+ "readWhen": "you draft or change a Duty",
7041
+ "tokens": 1087,
7042
7042
  "aliases": [],
7043
7043
  "explains": [
7044
7044
  "DUTY_MODE_RETIRED",
@@ -107,7 +107,7 @@ async function offerDaemonSetup(opts = {}) {
107
107
  // Disclose both the safe new-profile default and upgrade compatibility at
108
108
  // the point where the person consents to a persistent local service.
109
109
  log(' New local profiles require approval for file reads, edits and shell commands.');
110
- log(' Cloud-started Claude Code sessions are refused until explicitly enabled.');
110
+ log(' Cloud-started Claude Code sessions can start without a separate approval.');
111
111
  log(' Existing profiles keep their permission settings, which may allow tools without asking.');
112
112
  log(` Require approvals for this profile: \`${(0, daemon_command_hint_1.daemonCommandHint)('config', { extraArgs: '--require-approvals' })}\``);
113
113
  log(` Allow only a chosen category without asking: \`${(0, daemon_command_hint_1.daemonCommandHint)('config', { extraArgs: '--mode read=auto' })}\``);
@@ -229,6 +229,7 @@ export type DutyPackPlanResponse = {
229
229
  version: string;
230
230
  };
231
231
  planDigest: string;
232
+ duty?: DutyView;
232
233
  draft?: Record<string, unknown>;
233
234
  /** A Pack planned into a Space: where it would go and who would hold it. */
234
235
  spacePlacement?: {
@@ -343,7 +344,7 @@ export declare const dutyApi: {
343
344
  /** One agent's Duties, system roles included, each with its loop status. */
344
345
  roster: (agentId: string) => Promise<DutyRoster>;
345
346
  /** Is this Duty's loop installed and working. */
346
- loopStatus: (id: string) => Promise<DutyLoopStatus>;
347
+ loopStatus: (id: string, currentContractFallback?: boolean) => Promise<DutyLoopStatus>;
347
348
  manifest: (id: string) => Promise<Record<string, unknown>>;
348
349
  import: (body: Record<string, unknown>) => Promise<{
349
350
  duty: {
@@ -405,7 +406,7 @@ export declare const dutyApi: {
405
406
  link: DutyWorkLink;
406
407
  }>;
407
408
  plan: (body: Record<string, unknown>) => Promise<DutyPlanResponse>;
408
- checkNow: (id: string) => Promise<Record<string, unknown>>;
409
+ checkNow: (id: string, verifyVersion?: number) => Promise<Record<string, unknown>>;
409
410
  checks: (id: string, query?: {
410
411
  limit?: number;
411
412
  cursor?: string;
@@ -454,13 +455,14 @@ export declare const dutyApi: {
454
455
  reason?: string;
455
456
  }) => Promise<Record<string, unknown>>;
456
457
  pause: (id: string) => Promise<Duty>;
457
- resume: (id: string) => Promise<Duty>;
458
+ resume: (id: string, expectedVersion?: number) => Promise<Duty>;
458
459
  complete: (id: string) => Promise<Duty>;
459
460
  delivery: (id: string, body: Record<string, unknown>) => Promise<Duty>;
460
461
  receipts: (id: string, query?: {
461
462
  limit?: number;
462
463
  checkId?: string;
463
464
  runId?: string;
465
+ observationId?: string;
464
466
  } | number) => Promise<DutyExecutionReceiptListResponse>;
465
467
  receiptQuarterlyMetrics: (id: string, year: number, quarter: number) => Promise<DutyExecutionReceiptQuarterlyMetricsResponse>;
466
468
  deliveryPatch: (id: string, taskId: string) => Promise<DutyDeliveryPatchResponse>;
@@ -807,7 +809,7 @@ export declare const DUTY_FEEDBACK_KINDS: readonly ["useful", "noisy", "wrong",
807
809
  */
808
810
  export declare const DUTY_REMEDIATION_ACTIONS: readonly ["pause_duty", "mute_user_nudges", "reduce_nudge_frequency", "mark_noop"];
809
811
  /** The only keys `createBodySchema` (a `z.strictObject`) accepts. */
810
- export declare const DUTY_CREATE_KEYS: readonly ["mode", "agentId", "kind", "compassId", "compassOrigin", "goalId", "title", "description", "agentDirective", "status", "target", "watchedSources", "policy", "delivery", "cadence", "subject", "sensors", "grants", "reports", "createdVia"];
812
+ export declare const DUTY_CREATE_KEYS: readonly ["mode", "agentId", "kind", "compassId", "compassOrigin", "goalId", "title", "description", "agentDirective", "status", "target", "watchedSources", "policy", "delivery", "cadence", "subject", "sensors", "grants", "reports", "escalationPolicy", "createdVia"];
811
813
  /**
812
814
  * Read the per-Duty domain policy from an inline flag or a text file.
813
815
  *
@@ -1157,7 +1159,7 @@ export declare function heldRunFailureCode(run: DutyCycle['runs'][number]): stri
1157
1159
  export declare function heldRunReviewCommand(run: DutyCycle['runs'][number]): string;
1158
1160
  /**
1159
1161
  * One line per Cycle:
1160
- * `09-22 12:04 ● stopped act duty_execution_budget_exhausted — Raise maxRunsPerDay…`
1162
+ * `2026-09-22 12:04:00 UTC ● stopped act duty_execution_budget_exhausted — Raise maxRunsPerDay…`
1161
1163
  * A run that failed is named under its Cycle with who has to move (machine
1162
1164
  * or model), because that is the next question every reader asks.
1163
1165
  */
@@ -100,6 +100,7 @@ const duty_product_1 = require("./duty-product");
100
100
  const duty_attention_copy_1 = require("./duty-attention-copy");
101
101
  const instruction_input_1 = require("./instruction-input");
102
102
  const format_1 = require("./format");
103
+ const iso_instant_1 = require("./iso-instant");
103
104
  const triggers_1 = require("./triggers");
104
105
  const PARSE_INTERVAL_TO_MS_RE = /^\d+(\.\d+)?$/;
105
106
  const DESCRIBE_EVIDENCE_HEALTH_RE = /_indeterminate$/;
@@ -223,9 +224,13 @@ exports.dutyApi = {
223
224
  */
224
225
  livenessSweep: () => data_provider_2.request.get('/api/duties/liveness/sweep'),
225
226
  /** One agent's Duties, system roles included, each with its loop status. */
226
- roster: (agentId) => data_provider_2.request.get((0, triggers_1.withQuery)('/api/duties/roster', { agentId })),
227
+ roster: (agentId) => data_provider_2.request.get((0, triggers_1.withQuery)('/api/duties/roster', {
228
+ agentId, coverage: 'current-agent',
229
+ })),
227
230
  /** Is this Duty's loop installed and working. */
228
- loopStatus: (id) => data_provider_2.request.get(`${base(id)}/loop-status`),
231
+ loopStatus: (id, currentContractFallback = false) => data_provider_2.request.get((0, triggers_1.withQuery)(`${base(id)}/loop-status`, {
232
+ coverage: currentContractFallback ? 'current-contract' : undefined,
233
+ })),
229
234
  manifest: (id) => data_provider_2.request.get(`${base(id)}/manifest`),
230
235
  import: (body) => data_provider_2.request.post('/api/duties/import', body),
231
236
  fork: (id, body) => data_provider_2.request.post(`${base(id)}/fork`, body),
@@ -254,7 +259,7 @@ exports.dutyApi = {
254
259
  updateWorkLink: (id, linkId, body) => data_provider_2.request.patch(`${base(id)}/links/${encodeURIComponent(linkId)}`, body),
255
260
  detachWorkLink: (id, linkId) => data_provider_2.request.delete(`${base(id)}/links/${encodeURIComponent(linkId)}`),
256
261
  plan: (body) => data_provider_2.request.post('/api/duties/plan', body),
257
- checkNow: (id) => data_provider_2.request.post(`${base(id)}/check-now`, {}),
262
+ checkNow: (id, verifyVersion) => data_provider_2.request.post(`${base(id)}/check-now`, verifyVersion === undefined ? {} : { verifyVersion }),
258
263
  checks: (id, query = {}) => data_provider_2.request.get((0, triggers_1.withQuery)(`${base(id)}/checks`, query)),
259
264
  actionHistory: (id, query = {}) => data_provider_2.request.get((0, triggers_1.withQuery)(`${base(id)}/action-history`, query)),
260
265
  actionProposals: (id, query = {}) => data_provider_2.request.get((0, triggers_1.withQuery)(`${base(id)}/action-proposals`, query)),
@@ -293,7 +298,7 @@ exports.dutyApi = {
293
298
  */
294
299
  setExecutor: (id, body) => data_provider_2.request.post(`${base(id)}/executor`, body),
295
300
  pause: (id) => data_provider_2.request.post(`${base(id)}/pause`, {}),
296
- resume: (id) => data_provider_2.request.post(`${base(id)}/resume`, {}),
301
+ resume: (id, expectedVersion) => data_provider_2.request.post(`${base(id)}/resume`, expectedVersion === undefined ? {} : { expectedVersion }),
297
302
  complete: (id) => data_provider_2.request.post(`${base(id)}/complete`, {}),
298
303
  delivery: (id, body) => data_provider_2.request.post(`${base(id)}/delivery`, body),
299
304
  receipts: (id, query = 1) => data_provider_2.request.get((0, triggers_1.withQuery)(`${base(id)}/receipts`, typeof query === 'number' ? { limit: query } : query)),
@@ -463,6 +468,7 @@ exports.DUTY_CREATE_KEYS = [
463
468
  'sensors',
464
469
  'grants',
465
470
  'reports',
471
+ 'escalationPolicy',
466
472
  'createdVia',
467
473
  ];
468
474
  /**
@@ -1028,13 +1034,7 @@ function renderDutyList(duties, log) {
1028
1034
  status: o.status ?? '-',
1029
1035
  outcome: o.assessment?.label ?? 'Unknown',
1030
1036
  evidence: o.assessment?.evidence ?? 'unavailable',
1031
- // `blocked` + `operation_read_unavailable` is "no sweep has recorded an operation for this
1032
- // contract yet", which `show` then reads live as ready: the bare `blocked` here read as a
1033
- // refusal and contradicted it (OSK-22586). A Duty that is not active reads as its own status
1034
- // (`paused`), never `waiting` (OSK-24685).
1035
- operation: o.assessment?.operationReason === 'operation_read_unavailable'
1036
- ? 'not read yet'
1037
- : (0, data_provider_2.dutyOperationLabel)(o.assessment),
1037
+ operation: (0, data_provider_2.dutyOperationLabel)(o.assessment),
1038
1038
  cadence: cadenceLabel(o),
1039
1039
  agent: o.agentId ?? '-',
1040
1040
  })), [
@@ -1202,8 +1202,8 @@ function describeStoppedMachine(wake) {
1202
1202
  */
1203
1203
  const OPERATION_REASON_WORDS = {
1204
1204
  runtime_duty_contract_unavailable: 'the selected runtime cannot enforce this Duty; repository work needs a Hosted Machine or a capable local harness',
1205
- // OSK-24685: every open Run is held for result recovery review, and only the Agent owner ends it.
1206
- result_held_for_review: 'a run is held for result recovery review, and every Check stops until the Agent owner closes it (`skrr agents always-on recovery-review <agent-id>`)',
1205
+ // OSK-24685: every open Run is held for result recovery review, and Checks wait for recovery.
1206
+ result_held_for_review: 'a run is held for result recovery review, and later Checks wait for recovery (`skrr agents always-on recovery-review <agent-id>`)',
1207
1207
  };
1208
1208
  function operationReasonWords(reason) {
1209
1209
  return typeof reason === 'string' ? OPERATION_REASON_WORDS[reason] : undefined;
@@ -2045,15 +2045,14 @@ const CYCLE_GLYPH = {
2045
2045
  // (OSK-21608): not a tick, because the work is still owed, and not a stop, because it applied.
2046
2046
  owed: '◐',
2047
2047
  };
2048
- /** `MM-DD HH:MM` in the reader's local time; `-` when the time is unknown. */
2048
+ /** The scheduler instant in UTC; `-` when the time is unknown. */
2049
2049
  function cycleTime(value) {
2050
2050
  if (typeof value !== 'string')
2051
2051
  return '-';
2052
2052
  const date = new Date(value);
2053
2053
  if (Number.isNaN(date.getTime()))
2054
2054
  return '-';
2055
- const pad = (n) => String(n).padStart(2, '0');
2056
- return `${pad(date.getMonth() + 1)}-${pad(date.getDate())} ${pad(date.getHours())}:${pad(date.getMinutes())}`;
2055
+ return (0, iso_instant_1.formatUtcInstant)(date).replace('T', ' ').replace(/Z$/, ' UTC');
2057
2056
  }
2058
2057
  function cycleWake(cycle) {
2059
2058
  const wake = cycle.wake || {};
@@ -2063,6 +2062,8 @@ function cycleWake(cycle) {
2063
2062
  }
2064
2063
  /** What one Cycle came to, in a single line. */
2065
2064
  function cycleSummary(cycle) {
2065
+ if (cycle.confirmedDelivery)
2066
+ return cycle.confirmedDelivery.summary;
2066
2067
  if (cycle.outcome === 'stopped' && cycle.stop) {
2067
2068
  const { question, gate, reason, fix, detail } = cycle.stop;
2068
2069
  // A stopped cycle can still have moved something (the Check's own read, a task it
@@ -2156,7 +2157,7 @@ function platformFetchLines(cycle) {
2156
2157
  }
2157
2158
  /**
2158
2159
  * One line per Cycle:
2159
- * `09-22 12:04 ● stopped act duty_execution_budget_exhausted — Raise maxRunsPerDay…`
2160
+ * `2026-09-22 12:04:00 UTC ● stopped act duty_execution_budget_exhausted — Raise maxRunsPerDay…`
2160
2161
  * A run that failed is named under its Cycle with who has to move (machine
2161
2162
  * or model), because that is the next question every reader asks.
2162
2163
  */
@@ -2175,8 +2176,16 @@ function formatDutyCycles(page) {
2175
2176
  : owed
2176
2177
  ? CYCLE_GLYPH.owed
2177
2178
  : CYCLE_GLYPH[cycle.outcome] || '?';
2178
- const word = echo ? 'recorded' : owed ? 'owed' : String(cycle.outcome);
2179
+ const outcomeWord = cycle.confirmedDelivery ? 'delivered' : String(cycle.outcome);
2180
+ const word = echo ? 'recorded' : owed ? 'owed' : outcomeWord;
2179
2181
  lines.push(`${cycleTime(cycle.startedAt)} ${glyph} ${word.padEnd(9)} ${cycleWake(cycle).padEnd(18)} ${echo ? recordOnlyEchoSummary(cycle) : cycleSummary(cycle)}`);
2182
+ if (cycle.confirmedDelivery?.verification) {
2183
+ lines.push(` ${cycle.confirmedDelivery.verification}`);
2184
+ }
2185
+ if (cycle.notificationNote)
2186
+ lines.push(` ${cycle.notificationNote}`);
2187
+ if (cycle.confirmedDelivery && cycle.stop?.fix)
2188
+ lines.push(` ${cycle.stop.fix}`);
2180
2189
  if (!echo &&
2181
2190
  cycle.decision?.summaryClarification &&
2182
2191
  cycleSummary(cycle) === cycle.decision.summary) {
@@ -2193,6 +2202,10 @@ function formatDutyCycles(page) {
2193
2202
  lines.push(` task ${task.identifier || task.id} ${task.status || '-'} — ${label}`);
2194
2203
  }
2195
2204
  for (const run of cycle.runs || []) {
2205
+ if (run.decision) {
2206
+ const label = run.decision === 'action_warranted' ? 'Action warranted' : 'No action warranted';
2207
+ lines.push(` run ${run.id} ${label}${run.decisionSummary ? ` — ${run.decisionSummary}` : ''}`);
2208
+ }
2196
2209
  if (run.reportPayload)
2197
2210
  lines.push(` run ${run.id} report: ${run.reportPayload.status === 'rejected' ? 'structured report rejected; plain summary used' : 'structured report validated (delivery tracked separately)'}`);
2198
2211
  for (const line of hypothesisRefusalLines(run))
@@ -2275,7 +2288,7 @@ function formatDutyExplanation(explanation) {
2275
2288
  const cycle = explanation.cycle;
2276
2289
  const lines = [
2277
2290
  cycle
2278
- ? `Latest cycle: ${cycleTime(cycle.startedAt)} ${cycle.outcome} (${cycle.id})`
2291
+ ? `Latest cycle: ${cycleTime(cycle.startedAt)} ${cycle.confirmedDelivery ? 'delivered' : cycle.outcome} (${cycle.id})`
2279
2292
  : `No cycle yet (status: ${explanation.status || '-'})`,
2280
2293
  ];
2281
2294
  if (cycle)
@@ -26,5 +26,7 @@ export declare function formatDutyRoster(roster: Partial<DutyRoster>): string[];
26
26
  * report" (OSK-15438, OSK-15412). Lines are returned unindented; the caller indents them.
27
27
  */
28
28
  export declare function formatLoopSummary(status: DutyLoopStatus): string[];
29
+ /** Show the physical contract separately from unconfirmed scheduler and history. */
30
+ export declare function formatCurrentDutyLoopContract(status: DutyLoopStatus, contract: NonNullable<DutyLoopStatus['currentContract']>): string[];
29
31
  /** One Duty's loop, in full. */
30
32
  export declare function formatDutyLoopStatus(status: DutyLoopStatus): string[];
@@ -4,6 +4,7 @@ exports.loopStateLabel = loopStateLabel;
4
4
  exports.noNextWakeText = noNextWakeText;
5
5
  exports.formatDutyRoster = formatDutyRoster;
6
6
  exports.formatLoopSummary = formatLoopSummary;
7
+ exports.formatCurrentDutyLoopContract = formatCurrentDutyLoopContract;
7
8
  exports.formatDutyLoopStatus = formatDutyLoopStatus;
8
9
  /**
9
10
  * Text rendering for `skrr duties roster` / `skrr duties status`.
@@ -18,6 +19,7 @@ exports.formatDutyLoopStatus = formatDutyLoopStatus;
18
19
  const data_provider_1 = require("@skrr-ai/data-provider");
19
20
  const format_1 = require("./format");
20
21
  const iso_instant_1 = require("./iso-instant");
22
+ const duties_1 = require("./duties");
21
23
  /** One word per state, with a mark only `healthy` may use. */
22
24
  const STATE_LABEL = {
23
25
  healthy: '✓ healthy',
@@ -186,6 +188,24 @@ function formatLoopSummary(status) {
186
188
  }
187
189
  return lines;
188
190
  }
191
+ /** Show the physical contract separately from unconfirmed scheduler and history. */
192
+ function formatCurrentDutyLoopContract(status, contract) {
193
+ const cadence = contract.cadence;
194
+ const mode = cadence?.mode || 'manual';
195
+ const interval = cadence?.intervalMs;
196
+ const schedule = mode === 'daily'
197
+ ? [mode, cadence?.times?.join(', '), cadence?.timezone].filter(Boolean).join(' ')
198
+ : interval ? `${mode} every ${(0, duties_1.describeIntervalMs)(interval)}` : mode;
199
+ return [
200
+ `${status.title} (${status.dutyId})`,
201
+ ` Lifecycle ${status.lifecycleStatus} · contract v${contract.version}`,
202
+ ` Cadence ${schedule}`,
203
+ ` Next wake ${contract.nextWake === 'inactive' ? 'Duty inactive' : 'Unconfirmed'}`,
204
+ ` ${status.loopDetail}`,
205
+ ` Scoped activity skrr duties cycles ${status.dutyId}`,
206
+ ` Web activity ${contract.activityPath}`,
207
+ ];
208
+ }
189
209
  /** One Duty's loop, in full. */
190
210
  function formatDutyLoopStatus(status) {
191
211
  const lines = [];
@@ -194,7 +214,12 @@ function formatDutyLoopStatus(status) {
194
214
  lines.push(` ${status.loopDetail || (0, data_provider_1.describeDutyLoopState)(status.loopState)}`);
195
215
  lines.push(` Lifecycle: ${status.lifecycleStatus}`);
196
216
  lines.push(` Last check: ${when(status.lastCheckAt)}`);
197
- lines.push(` Last seen: ${when(status.lastSuccessfulObservationAt)}`);
217
+ lines.push(` Last observation: ${status.lastSuccessfulObservationAt ? when(status.lastSuccessfulObservationAt) : 'unconfirmed for this contract'}`);
218
+ const prior = status.priorObservationContract;
219
+ if (prior) {
220
+ const checkedAt = prior.checkedAt ? ` at ${when(prior.checkedAt)}` : '';
221
+ lines.push(` Previous check: v${prior.version}${checkedAt} (current contract v${prior.currentVersion})`);
222
+ }
198
223
  if (status.lastStop) {
199
224
  // `fix` is an optional contract field; read it defensively across package builds.
200
225
  const stop = status.lastStop;
@@ -7,8 +7,28 @@ exports.deliveryInput = deliveryInput;
7
7
  exports.renderExecutionReceipt = renderExecutionReceipt;
8
8
  exports.renderExecutionReceiptQuarterlyMetrics = renderExecutionReceiptQuarterlyMetrics;
9
9
  const data_provider_1 = require("@skrr-ai/data-provider");
10
+ const search_display_1 = require("./search-display");
10
11
  const DELIVERY_INPUT_RE = /-/g;
11
12
  const RENDER_EXECUTION_RECEIPT_RE = /^[A-Za-z0-9_.:-]+$/;
13
+ const RECEIPT_PHASE_MARKS = {
14
+ done: '✓',
15
+ working: '→',
16
+ waiting: '…',
17
+ blocked: '!',
18
+ failed: '×',
19
+ skipped: '–',
20
+ };
21
+ const PEER_VERIFICATION_LABELS = {
22
+ applied: 'Peer Duty changed · waiting for evidence',
23
+ verified: 'Peer Duty change verified',
24
+ acceptance_not_met: 'Peer Duty acceptance not met',
25
+ blocked: 'Peer Duty verification blocked',
26
+ };
27
+ const PEER_VERIFICATION_BLOCKERS = new Map([
28
+ ['peer_change_not_current', 'The target Duty is already on another revision.'],
29
+ ['peer_evidence_unproven', 'This revision still needs qualifying evidence from a target Run.'],
30
+ ['target_or_observation_unavailable', 'The target Duty or its declared observation is unavailable.'],
31
+ ]);
12
32
  exports.DUTY_DELIVERY_CHOICES = [
13
33
  'report-only',
14
34
  'local-patch',
@@ -47,6 +67,34 @@ function deliveryInput(mode, options = {}) {
47
67
  }
48
68
  function renderExecutionReceipt(receipt, log, verbose = false) {
49
69
  log(receipt.summary);
70
+ if (receipt.scope === 'exact_run')
71
+ log('This receipt covers the selected Run.');
72
+ if (receipt.decisionEvidence?.length) {
73
+ log('Agent-reported observations');
74
+ for (const observation of receipt.decisionEvidence) {
75
+ log(` ${(0, search_display_1.searchDisplayText)(observation.label)}: ${(0, search_display_1.searchDisplayText)(observation.state)}`);
76
+ }
77
+ }
78
+ if (receipt.peerVerification) {
79
+ const { status, reason, receipt: change } = receipt.peerVerification;
80
+ log(PEER_VERIFICATION_LABELS[status]);
81
+ const blocker = reason && PEER_VERIFICATION_BLOCKERS.get(reason);
82
+ if (status === 'blocked' && blocker)
83
+ log(` ${blocker}`);
84
+ if (change) {
85
+ const { targetDutyId, previousVersion, version, verification } = change;
86
+ const query = new URLSearchParams({ view: 'activity' });
87
+ if (verification) {
88
+ query.set('checkId', verification.targetCheckId);
89
+ query.set('runId', verification.targetRunId);
90
+ query.set('observationId', verification.observationId);
91
+ }
92
+ const path = `/duties/${encodeURIComponent(targetDutyId)}?${query}`;
93
+ log(` Target Duty v${previousVersion} → v${version}: ${path}`);
94
+ if (verification)
95
+ log(` Observation: ${verification.observationId}`);
96
+ }
97
+ }
50
98
  if (receipt.runtime) {
51
99
  const identity = receipt.runtime.name || receipt.runtime.id || 'the selected runtime';
52
100
  log(`Runtime: ${identity}${receipt.runtime.kind ? ` · ${receipt.runtime.kind}` : ''}${receipt.runtime.provider ? ` · ${receipt.runtime.provider}` : ''}`);
@@ -57,10 +105,11 @@ function renderExecutionReceipt(receipt, log, verbose = false) {
57
105
  // open it; different evidence stays on the phase it belongs to. The web receipt does the same.
58
106
  const printedEvidence = new Set();
59
107
  for (const phase of receipt.phases) {
60
- const mark = { done: '✓', working: '→', waiting: '…', failed: '×', skipped: '–' }[phase.status];
61
- const label = phase.phase === 'observed' && receipt.checkKind === 'follow_through'
108
+ const mark = RECEIPT_PHASE_MARKS[phase.status];
109
+ const title = phase.phase === 'delivered' && phase.status === 'blocked' ? 'delivery' : phase.phase;
110
+ const label = title === 'observed' && receipt.checkKind === 'follow_through'
62
111
  ? 'Check'
63
- : phase.phase[0].toUpperCase() + phase.phase.slice(1);
112
+ : title[0].toUpperCase() + title.slice(1);
64
113
  log(` ${mark} ${label}: ${phase.summary}${phase.at ? ` · ${phase.at}` : ''}`);
65
114
  for (const evidence of phase.evidence) {
66
115
  const location = evidence.url || evidence.path;
package/dist/lib/tasks.js CHANGED
@@ -1106,11 +1106,19 @@ function projectMatchesId(project, ref) {
1106
1106
  }
1107
1107
  async function getCachedProject(projectId, cache) {
1108
1108
  const load = async () => {
1109
+ if ((0, projects_1.looksLikeCanonicalProjectId)(projectId) && !looksLikeStorageId(projectId)) {
1110
+ try {
1111
+ return await projects_1.projectApi.get(projectId);
1112
+ }
1113
+ catch (error) {
1114
+ if (error?.code !== 'PROJECT_LOOKUP_UNSUPPORTED') {
1115
+ throw error;
1116
+ }
1117
+ }
1118
+ }
1109
1119
  const filtered = await projects_1.projectApi.search({ q: projectId, limit: 20 });
1110
1120
  let exact = (0, projects_1.projectsFrom)(filtered).filter((project) => projectMatchesId(project, projectId));
1111
- // The cross-space endpoint's `q` contract covers title/description/ref,
1112
- // not UUID. Fall back to the bounded visible project catalog so canonical
1113
- // IDs still resolve without inventing a second project read endpoint.
1121
+ // Older servers and pasted Mongo storage ids still use the visible catalog.
1114
1122
  if (exact.length === 0) {
1115
1123
  const catalog = await projects_1.projectApi.search({ limit: 200 });
1116
1124
  exact = (0, projects_1.projectsFrom)(catalog).filter((project) => projectMatchesId(project, projectId));
@@ -140,8 +140,8 @@ function buildUsageReference(manifest, domainInput, options = {}) {
140
140
  }
141
141
  function renderUsageOverview(overview) {
142
142
  const lines = [
143
- `skrr command domains (${overview.domains.length}; manifest-derived).`,
144
- 'Read one domain at a time: skrr usage <domain>.',
143
+ `skrr command domains (${overview.domains.length}).`,
144
+ 'Read a domain with skrr usage <domain>.',
145
145
  ...overview.domains.map(({ domain }) => domain),
146
146
  ];
147
147
  return lines.join('\n');