(() => { const text = (value) => String(value ?? '').slice(0, 1200).replace(/[&<>"']/g, (character) => ({ '&': '&', '<': '<', '>': '>', '"': '"', "'": ''' })[character]); const status = (state, type) => state === 'running' ? 'Running — completion unconfirmed' : state === 'unknown' ? 'Outcome unknown — review required' : state === 'succeeded' && type === 'delivery' ? 'Adapter succeeded — verify lifecycle and live evidence' : state === 'succeeded' ? 'Object import succeeded — not deployment' : text(state ?? 'not recorded'); function render(snapshot) { const fetches = (snapshot.canonicalFetches ?? []).slice(0, 20); const operations = (snapshot.deliveryOperations ?? []).slice(0, 40); const attempts = snapshot.deliveryAttempts ?? []; return `
Object imports do not move branches or deploy releases. Latest 20 recorded operations.
${fetches.length ? fetches.map((item) => `Branch ${text(item.branch)} · commit ${text(item.commit)}
${text(item.updatedAt)}
No canonical fetch receipts recorded.
'}Uncertain or interrupted external actions need review. No automatic retry or recovery is offered here.
${operations.length ? operations.map((item) => `Delivery ${text(item.deliveryId)} · commit ${text(item.commit)} · ${text(item.updatedAt)}
${receipt ? `Receipt: ${text(receipt.status)}${receipt.classification ? ` · ${text(receipt.classification)} failure` : ''}${receipt.effects ? ` · effects ${text(receipt.effects)}` : ''}${receipt.reason ? ` · ${text(receipt.reason)}` : ''}. ${receipt.hasReference ? 'Adapter reference recorded; not exposed in this view.' : 'No adapter reference recorded.'}` : 'Receipt summary unavailable.'}
No delivery operation receipts recorded. Landing is not deployment.
'}${text(snapshot.deliveryEvidenceCoverage ?? 'Receipt history may be incomplete. Inspect CLI evidence for details.')}
`; } globalThis.TorchOperationOutcomes = Object.freeze({ render }); })();