Skip to content

Separate timeout from fail in attestation summary and timeline#90

Merged
sarroutbi merged 1 commit into
keylime-webtool:mainfrom
sarroutbi:separate-timeout-from-fail-in-attestation-summary
May 12, 2026
Merged

Separate timeout from fail in attestation summary and timeline#90
sarroutbi merged 1 commit into
keylime-webtool:mainfrom
sarroutbi:separate-timeout-from-fail-in-attestation-summary

Conversation

@sarroutbi
Copy link
Copy Markdown
Contributor

Timeout (push-mode state 103) was grouped with Fail (101) as a single "failed" category. The SRS (FR-001, FR-024) and SDD (3.7.1, 3.7.2) require Timeout to be reported separately so the frontend can render it in orange, distinct from red for Fail.

  • Add total_timed_out to AttestationSummary and timed_out to TimelineBucket
  • Add is_timeout() helper to AgentState
  • Change query_counts to return (successful, failed, timed_out) triple across both FallbackAttestationRepository and SQLite
  • Update query_timeline to distribute timed_out as a third series
  • Update success_rate formula to exclude both failed and timed_out from the numerator
  • Add unit tests for three-way split at handler, fallback repo, and SQLite repo levels

Timeout (push-mode state 103) was grouped with Fail (101) as a single
"failed" category. The SRS (FR-001, FR-024) and SDD (3.7.1, 3.7.2)
require Timeout to be reported separately so the frontend can render
it in orange, distinct from red for Fail.

- Add `total_timed_out` to AttestationSummary and `timed_out` to
  TimelineBucket
- Add `is_timeout()` helper to AgentState
- Change `query_counts` to return (successful, failed, timed_out)
  triple across both FallbackAttestationRepository and SQLite
- Update `query_timeline` to distribute timed_out as a third series
- Update success_rate formula to exclude both failed and timed_out
  from the numerator
- Add unit tests for three-way split at handler, fallback repo,
  and SQLite repo levels

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Signed-off-by: Sergio Arroutbi <sarroutb@redhat.com>
@sarroutbi sarroutbi merged commit 9447cfb into keylime-webtool:main May 12, 2026
12 checks passed
@sarroutbi sarroutbi deleted the separate-timeout-from-fail-in-attestation-summary branch May 12, 2026 10:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant