You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor: enhance analysis report structure and content
- Updated `createAnalysisReport` to include compact confidence, totals, aggregate weights, and per-component weight map.
- Introduced `summarizeConfidence`, `summarizeTotals`, and `summarizeResults` functions for better data handling.
- Modified risk summary to include compacted risk details.
- Adjusted report outputs in examples and documentation to reflect new report structure.
- Improved tests to validate new report features and ensure consistency across outputs.
Copy file name to clipboardExpand all lines: README.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -204,11 +204,11 @@ Collection confidence and identity confidence are both exposed. `confidence.scor
204
204
The browser demo in [examples/browser.html](examples/browser.html) renders three reports side by side and tracks repeated runs:
205
205
206
206
- Compact report: concise identity, risk, quality, calculations, and every capability with status, role, hashability, weight, duration, value summary, and error state.
207
-
- ID analysis report: shortest dense format for backend scoring. It contains `id`, request metadata, confidence, aggregate weights, hash checks, risk verdicts, and every component's role, status, weight, raw result, and error.
207
+
- ID analysis report: shortest dense format for backend scoring. It is rendered as readable JSON and contains `id`, request metadata, compact confidence, totals, aggregate weights, `weights.byComponent`, hash checks, risk verdicts, identity/report-only lists, and short `results` summaries keyed by component ID.
208
208
- Full report: raw SDK result, recalculated hash, all-signals hash, derived calculations, stability data, explainable report, ID analysis report, and every component value/error.
209
209
- Stability view: baseline visitor ID, current visitor ID, identity input count, report-only count, changed identity/report-only components, and recent run history.
210
210
211
-
All demo outputs are generated from the same `IdentifyResult`. The compact and ID analysis formats include every collected capability; the full format additionally embeds the raw result and explainable report. Use the `extended` profile in the demo to exercise the full collector pack and confirm that report-only changes do not move the stable visitor ID.
211
+
All demo outputs are generated from the same `IdentifyResult` and are ordered by verbosity: ID analysis, compact report, then full report. The compact format includes every collected capability with readable summaries. The ID analysis format keeps every component represented through weight and result maps without dumping raw component objects. The full format additionally embeds the raw result and explainable report. Use the `extended` profile in the demo to exercise the full collector pack and confirm that report-only changes do not move the stable visitor ID.
212
212
213
213
The debug inspector in [examples/inspector.html](examples/inspector.html) accepts an `IdentifyResult`, full demo report JSON, or ID analysis report JSON and explains identity components, report-only components, tamper, bot, and private-mode evidence.
0 commit comments