Capture explicit operation mode in launcher install flow

This commit is contained in:
Joshua 2026-02-18 20:31:12 -08:00
parent 26cdbeae38
commit c92676194f
4 changed files with 18 additions and 1 deletions

View File

@ -44,7 +44,7 @@ Advanced integration controls (collapsible):
3. Membership quote + confirm primitives 3. Membership quote + confirm primitives
4. Marketplace offer list + checkout quote/send/confirm primitives 4. Marketplace offer list + checkout quote/send/confirm primitives
5. Member channel register/poll primitives 5. Member channel register/poll primitives
6. Governance install + lease primitives 6. Governance install + lease primitives (with explicit `operation_mode`)
7. Raw response log for deterministic troubleshooting 7. Raw response log for deterministic troubleshooting
Wallet automation helpers remain available in advanced controls: Wallet automation helpers remain available in advanced controls:

View File

@ -198,6 +198,10 @@ function principalRole() {
return $("principalRole").value.trim(); return $("principalRole").value.trim();
} }
function operationMode() {
return $("operationMode").value.trim() || "human_manual";
}
function renderEvents(events) { function renderEvents(events) {
const list = $("eventList"); const list = $("eventList");
list.innerHTML = ""; list.innerHTML = "";
@ -693,6 +697,7 @@ async function onInstallConfirm() {
entitlement_id: $("entitlementId").value.trim(), entitlement_id: $("entitlementId").value.trim(),
package_hash: $("packageHash").value.trim(), package_hash: $("packageHash").value.trim(),
runtime_version: $("runtimeVersion").value.trim(), runtime_version: $("runtimeVersion").value.trim(),
operation_mode: operationMode(),
installed_at: nowISO(), installed_at: nowISO(),
launcher_receipt_hash: `receipt-${Date.now()}`, launcher_receipt_hash: `receipt-${Date.now()}`,
}); });

View File

@ -314,6 +314,13 @@
<input id="runtimeVersion" /> <input id="runtimeVersion" />
</label> </label>
</div> </div>
<label>
Operation mode
<select id="operationMode">
<option value="human_manual">human_manual</option>
<option value="worker_auto">worker_auto</option>
</select>
</label>
<label> <label>
Package hash Package hash
<input id="packageHash" /> <input id="packageHash" />

View File

@ -31,6 +31,11 @@ Launcher integrates with EDUT web/backend contracts as follows:
- `wallet_session_expired` - `wallet_session_expired`
- `wallet_session_mismatch` - `wallet_session_mismatch`
## Runtime Mode Signal
1. Launcher install-confirm payload carries `operation_mode` (`human_manual` or `worker_auto`).
2. Mode signal is deterministic evidence input for governance activation policy and receipt hashing.
## Deterministic Requirements ## Deterministic Requirements
1. No runtime activation without entitlement proof. 1. No runtime activation without entitlement proof.