(() => { 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 `

Canonical fetch outcomes

Object imports do not move branches or deploy releases. Latest 20 recorded operations.

${fetches.length ? fetches.map((item) => `
${text(item.remote)} · ${status(item.state, 'fetch')}

Branch ${text(item.branch)} · commit ${text(item.commit)}

${text(item.updatedAt)}

`).join('') : '

No canonical fetch receipts recorded.

'}

Delivery operation outcomes

Uncertain or interrupted external actions need review. No automatic retry or recovery is offered here.

${operations.length ? operations.map((item) => `
${text(item.operation)} · ${text(item.provider)} · ${status(item.state, 'delivery')}

Delivery ${text(item.deliveryId)} · commit ${text(item.commit)} · ${text(item.updatedAt)}

`).join('') : '

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 }); })();