Rapporto di diagnostica della raccolta (#39)
verifica / controlli (push) Successful in 18s
verifica / prove (push) Successful in 13m5s
verifica / installatore (push) Successful in 4m11s
verifica / immagine (push) Successful in 14m4s

Dopo una prova dal vivo andata male, Alberto deve poter mandare un solo file che
spieghi perché, senza che nessuno veda dati di altre persone. Attività ha ora il
pulsante «Diagnostica», che scarica il rapporto delle sessioni degli ultimi 14 giorni:
pagine aperte e forma degli indirizzi, risposte per tipo, stato e dimensione con ciò
che i lettori ne hanno fatto, struttura stretta delle forme sconosciute, ricette,
segnali, permessi negati, file in coda e scaricati, e il motivo di ogni arresto.

Nel rapporto entrano solo valori da elenchi chiusi, numeri, orari e forme: mai nomi,
indirizzi completi, codici, cursori, cookie o pezzi di risposte. Le forme degli
indirizzi e la regola delle chiavi-dato passano dalla sonda a Core, e la sonda le
richiama. Il registratore non lancia mai eccezioni verso la raccolta e tiene i file in
Dati/diagnostica per 14 giorni.

Prova che il rapporto non contiene valori, con controlli di mutazione; tre giri di
revisione avversaria (25 difetti confermati, tutti corretti).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Alby96andClaude Opus 5.5 committed 2026-11-13 14:41:34 +01:00
1 parent bf03cb45a5
commit badd1681a0
55 files changed
+5395 -134

No files matched your search

@@ -78,4 +78,52 @@ public interface IResponseObserver
void OnBodyDropped(string requestId)
{
}
/// <summary>
/// The same as <see cref="OnBodyDropped(string)"/>, with the reason (for the diagnostic report, issue #39). The tap
/// calls this one; by default it forwards to the overload without a reason.
/// </summary>
void OnBodyDropped(string requestId, BodyDropReason reason) => OnBodyDropped(requestId);
/// <summary>
/// A response announced by <see cref="OnResponse"/> finished loading: <paramref name="encodedBytes"/> is what
/// crossed the network (the browser's encodedDataLength). Called for every response, whether its body is read or not.
/// </summary>
void OnLoadingFinished(string requestId, long encodedBytes)
{
}
}
/// <summary>Why the body of a response did not reach the consumers (closed list: a report may show it).</summary>
public enum BodyDropReason
{
/// <summary>Over the size the tap reads (memory guard).</summary>
TooLarge,
/// <summary>The browser says the request failed.</summary>
LoadingFailed,
/// <summary>The page moved to another document before the body finished.</summary>
FrameNavigated,
/// <summary>The browser was restarted or reconnected.</summary>
Reconnected,
/// <summary>Nobody was listening for bodies.</summary>
NoConsumers,
/// <summary>The browser no longer had the body (evicted from its buffer) or gave none.</summary>
Unavailable,
/// <summary>The body did not arrive in time.</summary>
Timeout,
/// <summary>Declared as data, but not JSON after all.</summary>
NotJson,
/// <summary>A page document without any embedded JSON block.</summary>
NoJsonBlock,
/// <summary>An unexpected error while reading it.</summary>
Unexpected,
}