Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
70 changes: 70 additions & 0 deletions tests/fixtures/reports/responsible-ai-compliance-high.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
# Responsible AI Compliance Report

## Summary
The application decides eligibility for a service with no human review, no notice to the affected person and no appeal route.

**Overall risk rating:** High.

## Findings Register

| ID | Finding | Severity | CWE | Verdict |
|----|---------|----------|-----|---------|
| F1 | No model card or intended-use statement for the hosted model | High | unverified | Confirmed |
| F2 | No bias or fairness testing is described | High | unverified | Confirmed |
| F3 | Model output is shown to the user with no review step | Medium | unverified | Confirmed |
| F4 | The UI does not say the reply is AI generated | Medium | unverified | Confirmed |
| F5 | No record of what data reaches the model | Low | unverified | Confirmed |
| F6 | No audit trail of generated replies and no way to contest one | Low | unverified | Confirmed |

## Findings

### [High] F1: No model card or intended-use statement for the hosted model
- **Severity:** High
- **CWE:** unverified
- **Verdict:** Confirmed
- **Location:** README.md, examples/
- **Description:** Documentation. The quickstart documents how to call the model but never states its intended use, known limitations or training-data provenance.
- **Recommendation:** Add a short model card section to the README covering intended use, limitations and data provenance.

### [High] F2: No bias or fairness testing is described
- **Severity:** High
- **CWE:** unverified
- **Verdict:** Confirmed
- **Location:** N/A
- **Description:** Bias & fairness. Nothing in the repository describes fairness testing or documents known failure modes for any subgroup.
- **Recommendation:** State explicitly that no fairness testing was done and why it is out of scope for a sample app.

### [Medium] F3: Model output is shown to the user with no review step
- **Severity:** Medium
- **CWE:** unverified
- **Verdict:** Confirmed
- **Location:** app.py
- **Description:** Human oversight. The app returns generated text straight to the caller. No decision is made on a person's behalf, so no oversight is required for the stakes involved.
- **Recommendation:** Document that outputs are advisory and must be reviewed before use in any decision.

### [Medium] F4: The UI does not say the reply is AI generated
- **Severity:** Medium
- **CWE:** unverified
- **Verdict:** Confirmed
- **Location:** templates/index.html
- **Description:** Transparency to end users. A reader of the page cannot tell the pet names are generated by a model.
- **Recommendation:** Add a one-line notice that the suggestions are AI generated.

### [Low] F5: No record of what data reaches the model
- **Severity:** Low
- **CWE:** unverified
- **Verdict:** Confirmed
- **Location:** app.py
- **Description:** Data provenance & consent. The prompt is built from user input only, but nothing documents that or how long inputs are retained by the provider.
- **Recommendation:** Document what is sent to the provider and link the provider's retention terms.

### [Low] F6: No audit trail of generated replies and no way to contest one
- **Severity:** Low
- **CWE:** unverified
- **Verdict:** Confirmed
- **Location:** app.py
- **Description:** Auditability & recourse. Requests and replies are not logged, and there is no contact route for a disputed result.
- **Recommendation:** Log request ids and add a contact address for feedback.

## Coverage Notes
Reviewed the README, the application entry point and the templates against all seven dimensions. No framework or internal AI policy is referenced in the repository. Confidence: moderate.
70 changes: 70 additions & 0 deletions tests/fixtures/reports/responsible-ai-compliance-medium.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
# Responsible AI Compliance Report

## Summary
The application screens support requests. A human review step exists but is applied inconsistently and the documentation omits known limitations.

**Overall risk rating:** Medium.

## Findings Register

| ID | Finding | Severity | CWE | Verdict |
|----|---------|----------|-----|---------|
| F1 | No model card or intended-use statement for the hosted model | Medium | unverified | Confirmed |
| F2 | No bias or fairness testing is described | Medium | unverified | Confirmed |
| F3 | Model output is shown to the user with no review step | Low | unverified | Confirmed |
| F4 | The UI does not say the reply is AI generated | Low | unverified | Confirmed |
| F5 | No record of what data reaches the model | Low | unverified | Confirmed |
| F6 | No audit trail of generated replies and no way to contest one | Low | unverified | Confirmed |

## Findings

### [Medium] F1: No model card or intended-use statement for the hosted model
- **Severity:** Medium
- **CWE:** unverified
- **Verdict:** Confirmed
- **Location:** README.md, examples/
- **Description:** Documentation. The quickstart documents how to call the model but never states its intended use, known limitations or training-data provenance.
- **Recommendation:** Add a short model card section to the README covering intended use, limitations and data provenance.

### [Medium] F2: No bias or fairness testing is described
- **Severity:** Medium
- **CWE:** unverified
- **Verdict:** Confirmed
- **Location:** N/A
- **Description:** Bias & fairness. Nothing in the repository describes fairness testing or documents known failure modes for any subgroup.
- **Recommendation:** State explicitly that no fairness testing was done and why it is out of scope for a sample app.

### [Low] F3: Model output is shown to the user with no review step
- **Severity:** Low
- **CWE:** unverified
- **Verdict:** Confirmed
- **Location:** app.py
- **Description:** Human oversight. The app returns generated text straight to the caller. No decision is made on a person's behalf, so no oversight is required for the stakes involved.
- **Recommendation:** Document that outputs are advisory and must be reviewed before use in any decision.

### [Low] F4: The UI does not say the reply is AI generated
- **Severity:** Low
- **CWE:** unverified
- **Verdict:** Confirmed
- **Location:** templates/index.html
- **Description:** Transparency to end users. A reader of the page cannot tell the pet names are generated by a model.
- **Recommendation:** Add a one-line notice that the suggestions are AI generated.

### [Low] F5: No record of what data reaches the model
- **Severity:** Low
- **CWE:** unverified
- **Verdict:** Confirmed
- **Location:** app.py
- **Description:** Data provenance & consent. The prompt is built from user input only, but nothing documents that or how long inputs are retained by the provider.
- **Recommendation:** Document what is sent to the provider and link the provider's retention terms.

### [Low] F6: No audit trail of generated replies and no way to contest one
- **Severity:** Low
- **CWE:** unverified
- **Verdict:** Confirmed
- **Location:** app.py
- **Description:** Auditability & recourse. Requests and replies are not logged, and there is no contact route for a disputed result.
- **Recommendation:** Log request ids and add a contact address for feedback.

## Coverage Notes
Reviewed the README, the application entry point and the templates against all seven dimensions. No framework or internal AI policy is referenced in the repository. Confidence: moderate.
70 changes: 70 additions & 0 deletions tests/fixtures/reports/responsible-ai-compliance.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
# Responsible AI Compliance Report

## Summary
The application is a sample that suggests pet names. It makes no decision about a person, so none of the seven dimensions is rated above Low.

**Overall risk rating:** Low.

## Findings Register

| ID | Finding | Severity | CWE | Verdict |
|----|---------|----------|-----|---------|
| F1 | No model card or intended-use statement for the hosted model | Low | unverified | Confirmed |
| F2 | No bias or fairness testing is described | Low | unverified | Confirmed |
| F3 | Model output is shown to the user with no review step | Low | unverified | Confirmed |
| F4 | The UI does not say the reply is AI generated | Low | unverified | Confirmed |
| F5 | No record of what data reaches the model | Low | unverified | Confirmed |
| F6 | No audit trail of generated replies and no way to contest one | Low | unverified | Confirmed |

## Findings

### [Low] F1: No model card or intended-use statement for the hosted model
- **Severity:** Low
- **CWE:** unverified
- **Verdict:** Confirmed
- **Location:** README.md, examples/
- **Description:** Documentation. The quickstart documents how to call the model but never states its intended use, known limitations or training-data provenance.
- **Recommendation:** Add a short model card section to the README covering intended use, limitations and data provenance.

### [Low] F2: No bias or fairness testing is described
- **Severity:** Low
- **CWE:** unverified
- **Verdict:** Confirmed
- **Location:** N/A
- **Description:** Bias & fairness. Nothing in the repository describes fairness testing or documents known failure modes for any subgroup.
- **Recommendation:** State explicitly that no fairness testing was done and why it is out of scope for a sample app.

### [Low] F3: Model output is shown to the user with no review step
- **Severity:** Low
- **CWE:** unverified
- **Verdict:** Confirmed
- **Location:** app.py
- **Description:** Human oversight. The app returns generated text straight to the caller. No decision is made on a person's behalf, so no oversight is required for the stakes involved.
- **Recommendation:** Document that outputs are advisory and must be reviewed before use in any decision.

### [Low] F4: The UI does not say the reply is AI generated
- **Severity:** Low
- **CWE:** unverified
- **Verdict:** Confirmed
- **Location:** templates/index.html
- **Description:** Transparency to end users. A reader of the page cannot tell the pet names are generated by a model.
- **Recommendation:** Add a one-line notice that the suggestions are AI generated.

### [Low] F5: No record of what data reaches the model
- **Severity:** Low
- **CWE:** unverified
- **Verdict:** Confirmed
- **Location:** app.py
- **Description:** Data provenance & consent. The prompt is built from user input only, but nothing documents that or how long inputs are retained by the provider.
- **Recommendation:** Document what is sent to the provider and link the provider's retention terms.

### [Low] F6: No audit trail of generated replies and no way to contest one
- **Severity:** Low
- **CWE:** unverified
- **Verdict:** Confirmed
- **Location:** app.py
- **Description:** Auditability & recourse. Requests and replies are not logged, and there is no contact route for a disputed result.
- **Recommendation:** Log request ids and add a contact address for feedback.

## Coverage Notes
Reviewed the README, the application entry point and the templates against all seven dimensions. No framework or internal AI policy is referenced in the repository. Confidence: moderate.
Loading
Loading