@rosthq/cli 0.7.122 → 0.7.123

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 CHANGED
@@ -117,8 +117,27 @@ runtime run IDs. It never returns an approval URL, makes an agent live, arms a
117
117
  schedule, accesses credentials, mutates sources, sends externally, or stages a
118
118
  confirmation. A retry with the same key and configuration returns the same
119
119
  terminal evidence; changed configuration is a conflict. Keep that exact evidence
120
- for the separate later `rost onboard activate` step, which alone stages the
121
- post-rehearsal activation approval.
120
+ for the separate activation step:
121
+
122
+ ```bash
123
+ rost onboard activate \
124
+ --setup-application-id <application-id> \
125
+ --expected-input-digest <digest> \
126
+ --expected-receipt-revision <revision> \
127
+ --terminal-rehearsal-batch-receipt-id <batch-receipt-id> \
128
+ --rehearsal-runs '[{"agent_id":"<agent-id>","rehearsal_run_id":"<run-id>"}]' \
129
+ --configuration-digests '[{"agent_id":"<agent-id>","configuration_digest":"<digest>"}]' \
130
+ --idempotency-key <stable-key> \
131
+ --json
132
+ ```
133
+
134
+ `rost onboard activate` accepts only the exact all-passed terminal batch and
135
+ per-agent evidence returned by rehearsal. It stages one complete owner approval
136
+ showing every agent, Seat, Charter/configuration digest, rehearsal run, effective
137
+ lane/model, permissions, schedule, warnings, and the onboarding-completion
138
+ effect. Approval makes every receipt agent live, arms eligible schedules, and
139
+ completes onboarding in one transaction; any stale or failed agent rolls the
140
+ whole activation back. A same-key retry returns the original committed receipt.
122
141
 
123
142
  Register the same `rost_impl_` bearer with an MCP client. This uses the bearer directly; there is no `mcp_token.create` step and no second token:
124
143
 
@@ -128,4 +147,4 @@ rost implementation access install-mcp --client codex
128
147
  rost implementation access install-mcp --client cursor
129
148
  ```
130
149
 
131
- The implementation credential is intentionally narrow and fail-closed. It can run vetted reads (for example `onboarding.status`, `graph.get`, `charter.get/list`, `compass.get_current`, `goal.list`, `agent.list_fleet`, `system.health`), stage human-gated proposals (`onboarding.setup`, `seat.create_complete`, `agent.create_custom`, `agent.create_from_template`, `compass.set`, `compass.approve_version`, `onboarding.finish`), execute only the receipt-bound sandbox exception `onboarding.rehearse`, and close its own run. `seat.create_complete` stages one atomic complete-Seat proposal for an owner to approve; it never makes an optional agent live. The rehearsal exception grants no general agent execution authority and cannot reach unrelated agents. Everything else, including other confirmation-free durable mutations and `confirmation.approve`, is denied. The policy module is `packages/commands/src/implementation-bootstrap-policy.ts` and is enforced by both the runtime guard and a CI drift test.
150
+ The implementation credential is intentionally narrow and fail-closed. It can run vetted reads (for example `onboarding.status`, `graph.get`, `charter.get/list`, `compass.get_current`, `goal.list`, `agent.list_fleet`, `system.health`), stage human-gated proposals (`onboarding.setup`, `onboarding.activate`, `seat.create_complete`, `agent.create_custom`, `agent.create_from_template`, `compass.set`, `compass.approve_version`, `onboarding.finish`), execute only the receipt-bound sandbox exception `onboarding.rehearse`, and close its own run. `seat.create_complete` stages one atomic complete-Seat proposal for an owner to approve; it never makes an optional agent live. `onboarding.activate` stages the one post-rehearsal owner decision and cannot approve itself. The rehearsal exception grants no general agent execution authority and cannot reach unrelated agents. Everything else, including other confirmation-free durable mutations and `confirmation.approve`, is denied. The policy module is `packages/commands/src/implementation-bootstrap-policy.ts` and is enforced by both the runtime guard and a CI drift test.
@@ -7,10 +7,10 @@ export type OnboardingDeps = {
7
7
  makeClient(): Promise<CommandClient>;
8
8
  };
9
9
  export type OnboardingInvocation = {
10
- commandId: "onboarding.status" | "onboarding.resume" | "onboarding.rehearse";
10
+ commandId: "onboarding.status" | "onboarding.resume" | "onboarding.rehearse" | "onboarding.activate";
11
11
  body: Record<string, unknown>;
12
12
  json: boolean;
13
- action: "status" | "resume" | "rehearse";
13
+ action: "status" | "resume" | "rehearse" | "activate";
14
14
  };
15
15
  export declare class OnboardingUsageError extends Error {
16
16
  constructor(message: string);
@@ -1 +1 @@
1
- {"version":3,"file":"onboarding.d.ts","sourceRoot":"","sources":["../../src/commands/onboarding.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aA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AAI,CAAC,MAAM,CAAC,WAAW,EAAE,OAAO,CAAC,CAAC;CAC3C,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG;IAI3B,UAAU,IAAI,OAAO,CAAC,aAAa,CAAC,CAAC;CACtC,CAAC;AAkBF,MAAM,MAAM,oBAAoB,GAAG;IACjC,SAAS,EAAE,mBAAmB,GAAG,mBAAmB,GAAG,qBAAqB,GAAG,qBAAqB,CAAC;IACrG,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC9B,IAAI,EAAE,OAAO,CAAC;IACd,MAAM,EAAE,QAAQ,GAAG,QAAQ,GAAG,UAAU,GAAG,UAAU,CAAC;CACvD,CAAC;AAEF,qBAAa,oBAAqB,SAAQ,KAAK;gBACjC,OAAO,EAAE,MAAM;CAI5B;AAED,wBAAsB,aAAa,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CAwBpG;AAED,wBAAgB,yBAAyB,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,oBAAoB,CAyG9E;AAED,wBAAgB,eAAe,IAAI,MAAM,CAMxC;AAED,wBAAgB,sBAAsB,CACpC,MAAM,EAAE,oBAAoB,CAAC,QAAQ,CAAC,EACtC,MAAM,EAAE,OAAO,GACd,MAAM,CAcR"}
@@ -1 +1 @@
1
- {"version":3,"file":"command-manifest.d.ts","sourceRoot":"","sources":["../../src/generated/command-manifest.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,gCAAgC,CAAC;AAE3E,eAAO,MAAM,gBAAgB,EAAE,SAAS,oBAAoB,EAuS3D,CAAC"}
1
+ {"version":3,"file":"command-manifest.d.ts","sourceRoot":"","sources":["../../src/generated/command-manifest.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,gCAAgC,CAAC;AAE3E,eAAO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